You've already forked matrix-js-sdk
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user