Provide userId parameter to findVerificationRequestDMInProgress (#11292)

This commit is contained in:
Florian Duros 2023-08-01 10:18:34 +02:00 committed by GitHub
parent 6ae7c033d5
commit b2eac5b65c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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