1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

dont cancel on remote echo of own .request event

This commit is contained in:
Bruno Windels
2019-12-10 14:35:17 +01:00
parent 817bfa35e5
commit 202fec2a35

View File

@@ -296,7 +296,7 @@ export default class VerificationRequest extends EventEmitter {
this._requestEvent = event;
this._initiatedByMe = this._wasSentByMe(event);
this._setPhase(PHASE_REQUESTED);
} else {
} else if (this._phase !== PHASE_REQUESTED) {
logger.warn("Ignoring flagged verification request from " +
event.getSender());
await this.cancel(errorFromEvent(newUnexpectedMessageError()));