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

Rust crypto: emit VerificationRequestReceived events (#3525)

This commit is contained in:
Richard van der Hoff
2023-06-28 15:32:27 +01:00
committed by GitHub
parent e645af1fc5
commit 24cee68fa2
3 changed files with 79 additions and 7 deletions

View File

@@ -2246,6 +2246,9 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
// attach the event listeners needed by RustCrypto
this.on(RoomMemberEvent.Membership, rustCrypto.onRoomMembership.bind(rustCrypto));
// re-emit the events emitted by the crypto impl
this.reEmitter.reEmit(rustCrypto, [CryptoEvent.VerificationRequestReceived]);
}
/**