1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Update matrix-sdk-crypto-wasm to 15.2.0 (#4991)

* Update matrix-sdk-crypto-wasm to 15.2.0

Most relevant changes:

-   History sharing: improve efficiency of building key bundle
    ([matrix-rust-sdk#5513](https://github.com/matrix-org/matrix-rust-sdk/issues/5513))

* Work around matrix-rust-sdk#5643

Modify the message content coming from Rust API to include the missing
property `msgtype: m.key.verification.request`
This commit is contained in:
Andy Balaam
2025-09-11 15:53:13 +01:00
committed by GitHub
parent 32f51e852b
commit e551b92a07
4 changed files with 26 additions and 6 deletions

View File

@@ -1086,7 +1086,12 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
verificationMethodIdentifierToMethod(method),
);
// Get the request content to send to the DM room
const verificationEventContent: string = await userIdentity.verificationRequestContent(methods);
const verCont: string = await userIdentity.verificationRequestContent(methods);
// TODO: due to https://github.com/matrix-org/matrix-rust-sdk/issues/5643, we need to fix up the verification request content to include `msgtype`.
const verContObj = JSON.parse(verCont);
verContObj["msgtype"] = "m.key.verification.request";
const verificationEventContent: string = JSON.stringify(verContObj);
// Send the request content to send to the DM room
const eventId = await this.sendVerificationRequestContent(roomId, verificationEventContent);