From 2130f565861a560c0f5ce98b3cc0c915e241bf79 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 13 Nov 2023 22:26:34 +0100 Subject: fix examples --- examples/SendEncrypted.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'examples/SendEncrypted.c') diff --git a/examples/SendEncrypted.c b/examples/SendEncrypted.c index a6cedb5..3debeab 100644 --- a/examples/SendEncrypted.c +++ b/examples/SendEncrypted.c @@ -24,13 +24,6 @@ main(void) MatrixClientGenerateOnetimeKeys(&client, 10); MatrixClientUploadOnetimeKeys(&client); - // // get device key - // static char deviceKey[128]; - // MatrixClientGetDeviceKey(&client, - // "ULZZOKJBYN", - // deviceKey, 128); - // printf("device key for %s: %s\n", "ULZZOKJBYN", deviceKey); - // create megolmsession MatrixMegolmOutSession * megolmOutSession; MatrixClientNewMegolmOutSession(&client, @@ -38,22 +31,10 @@ main(void) &megolmOutSession); printf("megolm session id: %.10s... key: %.10s...\n", megolmOutSession->id, megolmOutSession->key); - // // create olmsession - // MatrixOlmSession * olmSession; - // MatrixClientGetOlmSession(&client, - // USER_ID, - // "ULZZOKJBYN", - // &olmSession); - // printf("olm session created\n"); - MatrixClientShareMegolmOutSession(&client, USER_ID, "ULZZOKJBYN", megolmOutSession); - // MatrixClientShareMegolmOutSessionTest(&client, - // USER_ID, - // "ULZZOKJBYN", - // megolmOutSession); MatrixClientSendEventEncrypted(&client, ROOM_ID, -- cgit v1.2.3