From b62c205052acb3eedf1650c39c8a854ec6702eaa Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 4 Oct 2022 10:40:31 -0600 Subject: [PATCH 1/2] Use stable calls to `/room_keys` Fixes https://github.com/vector-im/element-web/issues/22839 --- src/client.ts | 6 +++--- src/crypto/EncryptionSetup.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client.ts b/src/client.ts index 63b7aa1acbb..d2273f5cb0f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2700,7 +2700,7 @@ export class MatrixClient extends TypedEventEmitter( undefined, Method.Get, "/room_keys/version", undefined, undefined, - { prefix: PREFIX_UNSTABLE }, + { prefix: PREFIX_V3 }, ); } catch (e) { if (e.errcode === 'M_NOT_FOUND') { @@ -2856,7 +2856,7 @@ export class MatrixClient extends TypedEventEmitter( undefined, Method.Post, "/room_keys/version", undefined, data, - { prefix: PREFIX_UNSTABLE }, + { prefix: PREFIX_V3 }, ); // We could assume everything's okay and enable directly, but this ensures @@ -2888,7 +2888,7 @@ export class MatrixClient extends TypedEventEmitter Date: Tue, 4 Oct 2022 10:45:24 -0600 Subject: [PATCH 2/2] Appease the CI --- src/crypto/EncryptionSetup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/EncryptionSetup.ts b/src/crypto/EncryptionSetup.ts index 21780995ce1..d7c826d120a 100644 --- a/src/crypto/EncryptionSetup.ts +++ b/src/crypto/EncryptionSetup.ts @@ -18,7 +18,7 @@ import { logger } from "../logger"; import { MatrixEvent } from "../models/event"; import { createCryptoStoreCacheCallbacks, ICacheCallbacks } from "./CrossSigning"; import { IndexedDBCryptoStore } from './store/indexeddb-crypto-store'; -import { Method, PREFIX_UNSTABLE, PREFIX_V3 } from "../http-api"; +import { Method, PREFIX_V3 } from "../http-api"; import { Crypto, IBootstrapCrossSigningOpts } from "./index"; import { ClientEvent,