1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

pending excludes observeOnly now, still allow observeOnly requests to get cancelled

This commit is contained in:
Bruno Windels
2020-02-19 17:51:53 +01:00
parent d51fad2de4
commit 08dfa73b57

View File

@@ -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;