1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Processing of received room key requests

Doesn't actually do any of the crypto magic yet.
This commit is contained in:
Richard van der Hoff
2017-05-31 11:23:47 +01:00
parent 97951e1c1a
commit c8eca50f43
3 changed files with 154 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ const SyncApi = require("./sync");
const MatrixBaseApis = require("./base-apis");
const MatrixError = httpApi.MatrixError;
import reEmit from './reemit';
const SCROLLBACK_DELAY_MS = 3000;
let CRYPTO_ENABLED = false;
@@ -166,6 +168,9 @@ function MatrixClient(opts) {
this.store,
opts.cryptoStore,
);
reEmit(this, this._crypto, [
"crypto.roomKeyRequest",
]);
this.olmVersion = Crypto.getOlmVersion();
}