diff options
| author | Patrick | 2023-11-13 22:26:34 +0100 |
|---|---|---|
| committer | Patrick | 2023-11-13 22:26:34 +0100 |
| commit | 2130f565861a560c0f5ce98b3cc0c915e241bf79 (patch) | |
| tree | 93d38de0047b920427a651357c1070b4bf8fabc3 /examples/SendEncrypted.c | |
| parent | c471aae81fd534281d5881db9d5a251200005cb3 (diff) | |
| download | matrix_esp_thesis-2130f565861a560c0f5ce98b3cc0c915e241bf79.tar.gz matrix_esp_thesis-2130f565861a560c0f5ce98b3cc0c915e241bf79.zip | |
fix examples
Diffstat (limited to 'examples/SendEncrypted.c')
| -rw-r--r-- | examples/SendEncrypted.c | 19 |
1 files changed, 0 insertions, 19 deletions
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,
|
