You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the suggested line I get UnverifiedDeviceError when trying to send a message to a room that has unverified devices, I got an error.
I began looking into things and noticed the function was actually changing cryptoBackend.globalErrorOnUnknownDevices, doing something else than what the deprecation message said. Later when I tried
The documentation on this method has been updated, sorry about that. Basically, for now you just need to continue to use MatrixClient.setGlobalErrorOnUnknownDevices. Once we remove the legacy crypto stack (element-hq/element-web#26922), setGlobalErrorOnUnknownDevices(false) will become a no-op.
Looking at MatrixClient.setGlobalErrorOnUnknownDevices(boolean) I've noticed it's deprecated, saying to use
matrix-js-sdk/src/client.ts
Lines 2684 to 2690 in 884bd25
Using the suggested line I get
UnverifiedDeviceError
when trying to send a message to a room that has unverified devices, I got an error.I began looking into things and noticed the function was actually changing
cryptoBackend.globalErrorOnUnknownDevices
, doing something else than what the deprecation message said. Later when I triedI got a typescript error telling me that this property doesn't exist, but the error in runtime has dissapeared.
Looking at CryptoApi, it only exposes
globalBlacklistUnverifiedDevices
, notglobalErrorOnUnknownDevices
.matrix-js-sdk/src/crypto-api.ts
Lines 32 to 41 in 4ce837b
globalErrorOnUnknownDevices
does exist on CryptoBackend but when casted to CryptoApi in getCrypto(), this property is lost.The text was updated successfully, but these errors were encountered: