Use new accessors for VerificationRequest (#11092)
* Switch verification request accessors to go via CryptoApi part of https://github.com/vector-im/crypto-internal/issues/97 * Update references to `requestVerification` https://github.com/vector-im/crypto-internal/issues/98
This commit is contained in:
committed by
GitHub
parent
dd46db4817
commit
06fa49a9da
@@ -66,7 +66,7 @@ export class SetupEncryptionStore extends EventEmitter {
|
||||
cli.on(CryptoEvent.VerificationRequest, this.onVerificationRequest);
|
||||
cli.on(CryptoEvent.UserTrustStatusChanged, this.onUserTrustStatusChanged);
|
||||
|
||||
const requestsInProgress = cli.getVerificationRequestsToDeviceInProgress(cli.getUserId()!);
|
||||
const requestsInProgress = cli.getCrypto()!.getVerificationRequestsToDeviceInProgress(cli.getUserId()!);
|
||||
if (requestsInProgress.length) {
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user