From 25b75526834d5075c2cc6fd95c01359a5a8d365c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 29 Jan 2020 15:18:18 +0100 Subject: [PATCH] startEvent can always be passed to verifier as we'll check the sender there to see on which side we are --- src/crypto/verification/request/VerificationRequest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/crypto/verification/request/VerificationRequest.js b/src/crypto/verification/request/VerificationRequest.js index 7f65ba06e..8767ab5a1 100644 --- a/src/crypto/verification/request/VerificationRequest.js +++ b/src/crypto/verification/request/VerificationRequest.js @@ -644,7 +644,6 @@ export class VerificationRequest extends EventEmitter { } _createVerifier(method, startEvent = null, targetDevice = null) { - const startedByMe = !startEvent || this._wasSentByOwnDevice(startEvent); if (!targetDevice) { const theirFirstEvent = this._eventsByThem.get(REQUEST_TYPE) || @@ -669,7 +668,7 @@ export class VerificationRequest extends EventEmitter { this._client, userId, deviceId, - startedByMe ? null : startEvent, + startEvent, ); }