1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

mark request as cancelled immediately after verifier is cancelled

in case send errors prevent us from receiving remote echo
This commit is contained in:
Bruno Windels
2020-04-09 17:54:45 +02:00
parent 00233d610b
commit 11727833a2
2 changed files with 12 additions and 1 deletions

View File

@@ -287,6 +287,7 @@ export class VerificationBase extends EventEmitter {
this._endTimer(); // always kill the activity timer
if (!this._done) {
this.cancelled = true;
this.request.onVerifierCancelled();
if (this.userId && this.deviceId) {
// send a cancellation to the other user (if it wasn't
// cancelled by the other user)