From b2eac5b65c08d4e4ba33ffd3ec3f269ba6e3834b Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 1 Aug 2023 10:18:34 +0200 Subject: [PATCH] Provide userId parameter to `findVerificationRequestDMInProgress` (#11292) --- src/verification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/verification.ts b/src/verification.ts index aa20740b213..ec49676c5e5 100644 --- a/src/verification.ts +++ b/src/verification.ts @@ -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); } }