mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Add explaining comment
This commit is contained in:
parent
a582aa1746
commit
2670976647
@ -76,6 +76,11 @@ export class RightPanelViewModel extends ViewModel {
|
|||||||
};
|
};
|
||||||
const id = this.navigation.path.get("verification").value;
|
const id = this.navigation.path.get("verification").value;
|
||||||
if (typeof id === "string") {
|
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 request = this._session?.crossSigning.get()?.receivedSASVerifications.get(id);
|
||||||
const extraOptions = request ? { request } : { userId: id };
|
const extraOptions = request ? { request } : { userId: id };
|
||||||
Object.assign(options, extraOptions);
|
Object.assign(options, extraOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user