1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Element-R: disable sending room key requests (#3939)

This commit is contained in:
Richard van der Hoff
2023-12-07 16:17:21 +00:00
committed by GitHub
parent 636fc3daaa
commit 479c4278a6

View File

@@ -67,6 +67,10 @@ export async function initRustCrypto(
storePrefix ?? undefined,
(storePrefix && storePassphrase) ?? undefined,
);
// Disable room key requests, per https://github.com/vector-im/element-web/issues/26524.
olmMachine.roomKeyRequestsEnabled = false;
const rustCrypto = new RustCrypto(logger, olmMachine, http, userId, deviceId, secretStorage, cryptoCallbacks);
await olmMachine.registerRoomKeyUpdatedCallback((sessions: RustSdkCryptoJs.RoomKeyInfo[]) =>
rustCrypto.onRoomKeysUpdated(sessions),