You've already forked matrix-js-sdk
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:
@@ -76,5 +76,12 @@ export class ReciprocateQRCode extends Base {
|
|||||||
if (this.startEvent.getContent()['secret'] !== this.request.encodedSharedSecret) {
|
if (this.startEvent.getContent()['secret'] !== this.request.encodedSharedSecret) {
|
||||||
throw newKeyMismatchError();
|
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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user