1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Wire up verification cancel & mismatch for rust crypto (#4202)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2024-05-15 15:58:24 +01:00
committed by GitHub
parent d76fb2baa0
commit 51fa1866a9

View File

@@ -710,10 +710,16 @@ export class RustSASVerifier extends BaseRustVerifer<RustSdkCryptoJs.Sas> implem
} }
}, },
mismatch: (): void => { mismatch: (): void => {
throw new Error("impl"); const request = this.inner.cancelWithCode("m.mismatched_sas");
if (request) {
this.outgoingRequestProcessor.makeOutgoingRequest(request);
}
}, },
cancel: (): void => { cancel: (): void => {
throw new Error("impl"); const request = this.inner.cancelWithCode("m.user");
if (request) {
this.outgoingRequestProcessor.makeOutgoingRequest(request);
}
}, },
}; };
this.emit(VerifierEvent.ShowSas, this.callbacks); this.emit(VerifierEvent.ShowSas, this.callbacks);