1
0
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:
Richard van der Hoff
2025-07-24 14:35:55 +01:00
committed by GitHub
parent c7dbd6e33b
commit 61e07633df
6 changed files with 122 additions and 13 deletions

View File

@@ -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 };