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:
Richard van der Hoff 2023-06-16 11:27:56 +01:00 committed by GitHub
parent dd46db4817
commit 06fa49a9da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -120,6 +120,6 @@ export function pendingVerificationRequestForUser(
): VerificationRequest | undefined {
const dmRoom = findDMForUser(matrixClient, user.userId);
if (dmRoom) {
return matrixClient.findVerificationRequestDMInProgress(dmRoom.roomId);
return matrixClient.getCrypto()!.findVerificationRequestDMInProgress(dmRoom.roomId);
}
}