From 084beaa947072df90066a0307e6d96ff366250b4 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:32:16 +0100 Subject: [PATCH] Fix up comments on `globalErrorOnUnknownDevices` (#3834) The current deprecation notice advises you to use a method which does something completely different. Fixing this "properly" is slightly challenging because we don't want to support setting it to `true` in Rust Crypto; yet I don't really want to change the default for legacy crypto. Let's just document the behaviour for now. --- src/client.ts | 6 +++--- src/common-crypto/CryptoBackend.ts | 4 ++-- src/rust-crypto/rust-crypto.ts | 10 +++++++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/client.ts b/src/client.ts index 2d151bdf527..10ceb658339 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2679,12 +2679,12 @@ export class MatrixClient extends TypedEventEmitter implements CryptoBackend { - public globalErrorOnUnknownDevices = false; private _trustCrossSignedDevices = true; /** whether {@link stop} has been called */ @@ -220,6 +219,15 @@ export class RustCrypto extends TypedEventEmitter