From 7c6bcbc09cdd976bfdb6a74cea9fb75bdf08f8b2 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 24 Mar 2023 19:36:27 +0530 Subject: [PATCH] Add explaining comment --- .../verification/SAS/stages/SelectVerificationMethodStage.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/matrix/verification/SAS/stages/SelectVerificationMethodStage.ts b/src/matrix/verification/SAS/stages/SelectVerificationMethodStage.ts index 78f6aaf9..f4cccfbf 100644 --- a/src/matrix/verification/SAS/stages/SelectVerificationMethodStage.ts +++ b/src/matrix/verification/SAS/stages/SelectVerificationMethodStage.ts @@ -91,6 +91,11 @@ export class SelectVerificationMethodStage extends BaseSASVerificationStage { message_authentication_codes: MAC_LIST, short_authentication_string: SAS_LIST, }; + /** + * Once we send the start event, we should eventually receive the accept message. + * This will cause the Promise.race in completeStage() to resolve and we'll move + * to the next stage (where we will send the key). + */ await this.channel.send(VerificationEventTypes.Start, content, log); this.hasSentStartMessage = true; }