From 479c4278a6ac482d40cf0c98afaa7c23a07fb12c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:17:21 +0000 Subject: [PATCH] Element-R: disable sending room key requests (#3939) --- src/rust-crypto/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rust-crypto/index.ts b/src/rust-crypto/index.ts index 127878811..ea0bcd247 100644 --- a/src/rust-crypto/index.ts +++ b/src/rust-crypto/index.ts @@ -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),