X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/9826729ea9eb492b0b25c52b934d9f1283bb70dd..a6eff84624ab1f3786d02aa2ec740b9a88090d94:/examples/SendEncrypted.c diff --git a/examples/SendEncrypted.c b/examples/SendEncrypted.c index 0c4a7c8..f2bb8df 100644 --- a/examples/SendEncrypted.c +++ b/examples/SendEncrypted.c @@ -4,7 +4,8 @@ #define SERVER "https://matrix.org" #define ACCESS_TOKEN "syt_cHNjaG8_yBvTjVTquGCikvsAenOJ_49mBMO" #define DEVICE_ID "MAZNCCZLBR" -#define ROOM_ID "!koVStwyiiKcBVbXZYz:matrix.org" +#define USER_ID "@pscho:matrix.org" +#define ROOM_ID "!XKFUjAsGrSSrpDFIxB:matrix.org" int main(void) @@ -19,6 +20,8 @@ main(void) ACCESS_TOKEN); MatrixClientSetDeviceId(&client, DEVICE_ID); + MatrixClientSetUserId(&client, + USER_ID); // MatrixMegolmOutSession megolmOutSession; // MatrixMegolmOutSessionInit(&megolmOutSession); @@ -31,6 +34,10 @@ main(void) ROOM_ID, "m.room.message", "{\"body\":\"Hello\",\"msgtype\":\"m.text\"}"); + + MatrixClientShareMegolmOutSessionTest(&client, + "ULZZOKJBYN", + &client.megolmOutSessions[0]); MatrixHttpDeinit(&client);