You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Update to matrix-sdk-crypto-wasm 15.1.0, and add new ShieldStateCode.MismatchedSender (#4916)
* test: add a flushPromises this seems to be needed because `initRustCrypto` now ends up doing slightly less awaiting * Support new `ShieldStateCode.MismatchedSender` * Update to matrix-sdk-crypto-wasm 15.1.0 * Add `waitFor` and use it instead of `flushPromises` * minor lints and fixes * another lint fix
This commit is contained in:
committed by
GitHub
parent
c7dbd6e33b
commit
61e07633df
@@ -2277,6 +2277,12 @@ function rustEncryptionInfoToJsEncryptionInfo(
|
||||
case RustSdkCryptoJs.ShieldStateCode.VerificationViolation:
|
||||
shieldReason = EventShieldReason.VERIFICATION_VIOLATION;
|
||||
break;
|
||||
case RustSdkCryptoJs.ShieldStateCode.MismatchedSender:
|
||||
shieldReason = EventShieldReason.MISMATCHED_SENDER;
|
||||
break;
|
||||
default:
|
||||
shieldReason = EventShieldReason.UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
||||
return { shieldColour, shieldReason };
|
||||
|
||||
Reference in New Issue
Block a user