mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Also check for our own key ID
This commit is contained in:
parent
f8e0dcf264
commit
91d59556db
@ -50,10 +50,11 @@ export default class VerificationPanel extends React.PureComponent {
|
|||||||
</AccessibleButton>;
|
</AccessibleButton>;
|
||||||
|
|
||||||
const crossSigningInfo = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
|
const crossSigningInfo = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
|
||||||
|
const myKeyId = MatrixClientPeg.get().getCrossSigningId();
|
||||||
if (request.requestEvent && request.requestEvent.getId() && crossSigningInfo) {
|
if (request.requestEvent && request.requestEvent.getId() && crossSigningInfo) {
|
||||||
const qrCodeKeys = [
|
const qrCodeKeys = [
|
||||||
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
|
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
|
||||||
[MatrixClientPeg.get().getCrossSigningId(), MatrixClientPeg.get().getCrossSigningId()],
|
[myKeyId, MatrixClientPeg.get().getCrossSigningId()],
|
||||||
];
|
];
|
||||||
const qrCode = <VerificationQRCode
|
const qrCode = <VerificationQRCode
|
||||||
keyholderUserId={MatrixClientPeg.get().getUserId()}
|
keyholderUserId={MatrixClientPeg.get().getUserId()}
|
||||||
|
Loading…
Reference in New Issue
Block a user