diff options
Diffstat (limited to 'examples/SendEncrypted.c')
| -rw-r--r-- | examples/SendEncrypted.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/SendEncrypted.c b/examples/SendEncrypted.c index 7e0b1d4..0005592 100644 --- a/examples/SendEncrypted.c +++ b/examples/SendEncrypted.c @@ -23,18 +23,20 @@ main(void) MatrixClientSetUserId(&client,
USER_ID);
- // MatrixMegolmOutSession megolmOutSession;
- // MatrixMegolmOutSessionInit(&megolmOutSession);
- // MatrixClientSetMegolmOutSession(&client,
- // ROOM_ID,
- // megolmOutSession);
+ MatrixClientUploadDeviceKeys(&client);
MatrixClientSendEventEncrypted(&client,
ROOM_ID,
"m.room.message",
"{\"body\":\"Hello\",\"msgtype\":\"m.text\"}");
+ MatrixClientSendToDeviceEncrypted(&client,
+ USER_ID,
+ "ULZZOKJBYN",
+ "{}",
+ "m.dummy");
+
MatrixClientShareMegolmOutSession(&client,
USER_ID,
"ULZZOKJBYN",
|
