From 8e08916502e11be5d5dcb6d6ba6cc00b0f38cc9f Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 14 Mar 2023 16:21:29 +0530 Subject: [PATCH] Remove magic string --- .../verification/SAS/stages/SendRequestVerificationStage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/verification/SAS/stages/SendRequestVerificationStage.ts b/src/matrix/verification/SAS/stages/SendRequestVerificationStage.ts index 1c4c3d34..f3ea42b0 100644 --- a/src/matrix/verification/SAS/stages/SendRequestVerificationStage.ts +++ b/src/matrix/verification/SAS/stages/SendRequestVerificationStage.ts @@ -26,7 +26,7 @@ export class SendRequestVerificationStage extends BaseSASVerificationStage { }; await this.channel.send(VerificationEventTypes.Request, content, log); this.setNextStage(new SelectVerificationMethodStage(this.options)); - await this.channel.waitForEvent("m.key.verification.ready"); + await this.channel.waitForEvent(VerificationEventTypes.Ready); }); } }