add comment

pull/21833/head
David Baker 2020-06-15 17:46:22 +01:00
parent 0618d82ccb
commit d90645f0ea
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ export class SetupEncryptionStore extends EventEmitter {
const cli = MatrixClientPeg.get(); const cli = MatrixClientPeg.get();
const requestsInProgress = cli.getVerificationRequestsToDeviceInProgress(cli.getUserId()); const requestsInProgress = cli.getVerificationRequestsToDeviceInProgress(cli.getUserId());
if (requestsInProgress.length) { 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]); this._setActiveVerificationRequest(requestsInProgress[0]);
} }