From 2670976647586ead5a779a88c8f2127f2a57686e Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 17 May 2023 12:34:54 +0530 Subject: [PATCH] Add explaining comment --- src/domain/session/rightpanel/RightPanelViewModel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/domain/session/rightpanel/RightPanelViewModel.js b/src/domain/session/rightpanel/RightPanelViewModel.js index c22bfb93..5a8c2079 100644 --- a/src/domain/session/rightpanel/RightPanelViewModel.js +++ b/src/domain/session/rightpanel/RightPanelViewModel.js @@ -76,6 +76,11 @@ export class RightPanelViewModel extends ViewModel { }; const id = this.navigation.path.get("verification").value; if (typeof id === "string") { + /** + * Here id is: + * 1. id of the request when we receive a sas verification request + * 2. id of the user we are trying to verify when we initiate the verification process + */ const request = this._session?.crossSigning.get()?.receivedSASVerifications.get(id); const extraOptions = request ? { request } : { userId: id }; Object.assign(options, extraOptions);