You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +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) {
|
||||
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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user