From 6646bd126f9faf1e687b203512d29da243acaa90 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 10 Jul 2023 20:57:49 +0200 Subject: more changes towards sharing megolm sessions --- examples/SendEncrypted.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'examples/SendEncrypted.c') 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", -- cgit v1.2.3