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),