From efad46a8a40549d35e2ac1a453128b324c658136 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 7 Feb 2020 15:37:34 +0000 Subject: [PATCH] Rename target device prop --- src/crypto/verification/request/VerificationRequest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/verification/request/VerificationRequest.js b/src/crypto/verification/request/VerificationRequest.js index ca5466085..991526ca8 100644 --- a/src/crypto/verification/request/VerificationRequest.js +++ b/src/crypto/verification/request/VerificationRequest.js @@ -273,13 +273,13 @@ export class VerificationRequest extends EventEmitter { } /** - * Estimates which device the verification should be started with + * Gets which device the verification should be started with * given the events sent so far in the verification. This is the * same algorithm used to determine which device to send the * verification to when no specific device is specified. * @returns {{userId: *, deviceId: *}} The device information */ - get estimatedTargetDevice() { + get targetDevice() { const theirFirstEvent = this._eventsByThem.get(REQUEST_TYPE) || this._eventsByThem.get(READY_TYPE) || @@ -665,7 +665,7 @@ export class VerificationRequest extends EventEmitter { _createVerifier(method, startEvent = null, targetDevice = null) { if (!targetDevice) { - targetDevice = this.estimatedTargetDevice; + targetDevice = this.targetDevice; } const {userId, deviceId} = targetDevice;