Take the last request (ie. the most recent)
This commit is contained in:
parent
d90645f0ea
commit
89a72b7685
1 changed files with 2 additions and 2 deletions
|
@ -52,10 +52,10 @@ 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
|
||||
// If there are multiple, we take the most recent. 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[requestsInProgress.length - 1]);
|
||||
}
|
||||
|
||||
this.fetchKeyInfo();
|
||||
|
|
Loading…
Reference in a new issue