From d90645f0ea94442d37d14dbcb1782170463a025b Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 15 Jun 2020 17:46:22 +0100 Subject: [PATCH] add comment --- src/stores/SetupEncryptionStore.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stores/SetupEncryptionStore.js b/src/stores/SetupEncryptionStore.js index 742b16ec98..a9a0ad4aa2 100644 --- a/src/stores/SetupEncryptionStore.js +++ b/src/stores/SetupEncryptionStore.js @@ -52,6 +52,9 @@ export class SetupEncryptionStore extends EventEmitter { const cli = MatrixClientPeg.get(); const requestsInProgress = cli.getVerificationRequestsToDeviceInProgress(cli.getUserId()); if (requestsInProgress.length) { + // If there are multiple, we take the first. Equally if the user sends another request from + // another device after this screen has been shown, we'll switch to the new one, so this + // generally doesn't support multiple requests. this._setActiveVerificationRequest(requestsInProgress[0]); }