1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

update comments

This commit is contained in:
Bruno Windels
2020-04-16 14:30:51 +02:00
parent 218aa423c3
commit f814a96eac

View File

@@ -65,7 +65,7 @@ export class ReciprocateQRCode extends Base {
this.emit("show_reciprocate_qr", this.reciprocateQREvent); this.emit("show_reciprocate_qr", this.reciprocateQREvent);
}); });
// 3. determine key to sign // 3. determine key to sign / mark as trusted
const keys = {}; const keys = {};
switch (qrCodeData.mode) { switch (qrCodeData.mode) {
@@ -87,7 +87,7 @@ export class ReciprocateQRCode extends Base {
} }
} }
// 4. sign the key // 4. sign the key (or mark own MSK as verified in case of MODE_VERIFY_SELF_TRUSTED)
await this._verifyKeys(this.userId, keys, (keyId, device, keyInfo) => { await this._verifyKeys(this.userId, keys, (keyId, device, keyInfo) => {
// make sure the device has the expected keys // make sure the device has the expected keys
const targetKey = keys[keyId]; const targetKey = keys[keyId];