You've already forked matrix-js-sdk
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:
@@ -644,7 +644,6 @@ export class VerificationRequest extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_createVerifier(method, startEvent = null, targetDevice = null) {
|
_createVerifier(method, startEvent = null, targetDevice = null) {
|
||||||
const startedByMe = !startEvent || this._wasSentByOwnDevice(startEvent);
|
|
||||||
if (!targetDevice) {
|
if (!targetDevice) {
|
||||||
const theirFirstEvent =
|
const theirFirstEvent =
|
||||||
this._eventsByThem.get(REQUEST_TYPE) ||
|
this._eventsByThem.get(REQUEST_TYPE) ||
|
||||||
@@ -669,7 +668,7 @@ export class VerificationRequest extends EventEmitter {
|
|||||||
this._client,
|
this._client,
|
||||||
userId,
|
userId,
|
||||||
deviceId,
|
deviceId,
|
||||||
startedByMe ? null : startEvent,
|
startEvent,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user