mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
add comment
This commit is contained in:
parent
0618d82ccb
commit
d90645f0ea
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user