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

Actually do the verification

This commit is contained in:
Travis Ralston
2020-01-29 14:56:28 +00:00
parent 0d7aee2c36
commit c45b38cece

View File

@@ -76,5 +76,12 @@ export class ReciprocateQRCode extends Base {
if (this.startEvent.getContent()['secret'] !== this.request.encodedSharedSecret) {
throw newKeyMismatchError();
}
// If we've gotten this far, verify the user's master cross signing key
const xsignInfo = this._baseApis.getStoredCrossSigningInfo(this.userId);
if (!xsignInfo) throw new Error("Missing cross signing info");
const masterKey = xsignInfo.getId("master");
await this._verifyKeys(this.userId, [masterKey, masterKey]);
}
}