1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

startEvent can always be passed to verifier

as we'll check the sender there to see on which side we are
This commit is contained in:
Bruno Windels
2020-01-29 15:18:18 +01:00
parent 21d520378f
commit 25b7552683

View File

@@ -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,
);
}