From 08dfa73b5796c880d63ced76efbe1c1ad88156ae Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 19 Feb 2020 17:51:53 +0100 Subject: [PATCH] pending excludes observeOnly now, still allow observeOnly requests to get cancelled --- src/crypto/verification/request/VerificationRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/verification/request/VerificationRequest.js b/src/crypto/verification/request/VerificationRequest.js index 7e7069f42..b55cfc672 100644 --- a/src/crypto/verification/request/VerificationRequest.js +++ b/src/crypto/verification/request/VerificationRequest.js @@ -565,7 +565,7 @@ export class VerificationRequest extends EventEmitter { */ async handleEvent(type, event, isLiveEvent, isRemoteEcho, isSentByUs) { // if reached phase cancelled or done, ignore anything else that comes - if (!this.pending) { + if (this.done || this.cancelled) { return; } const wasObserveOnly = this._observeOnly;