MatrixClientGenerateOnetimeKeys(&client, 10);\r
MatrixClientUploadOnetimeKeys(&client);\r
\r
- // // get device key\r
- // static char deviceKey[128];\r
- // MatrixClientGetDeviceKey(&client,\r
- // "ULZZOKJBYN",\r
- // deviceKey, 128);\r
- // printf("device key for %s: %s\n", "ULZZOKJBYN", deviceKey);\r
-\r
// create megolmsession\r
MatrixMegolmOutSession * megolmOutSession;\r
MatrixClientNewMegolmOutSession(&client,\r
&megolmOutSession);\r
printf("megolm session id: %.10s... key: %.10s...\n", megolmOutSession->id, megolmOutSession->key);\r
\r
- // // create olmsession\r
- // MatrixOlmSession * olmSession;\r
- // MatrixClientGetOlmSession(&client,\r
- // USER_ID,\r
- // "ULZZOKJBYN",\r
- // &olmSession);\r
- // printf("olm session created\n");\r
-\r
MatrixClientShareMegolmOutSession(&client,\r
USER_ID,\r
"ULZZOKJBYN",\r
megolmOutSession);\r
- // MatrixClientShareMegolmOutSessionTest(&client,\r
- // USER_ID,\r
- // "ULZZOKJBYN",\r
- // megolmOutSession);\r
\r
MatrixClientSendEventEncrypted(&client,\r
ROOM_ID,\r