mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #3934 from matrix-org/travis/cross-signing-info
Add null check for cross-signing info in verification panel
This commit is contained in:
commit
1986f13275
1 changed files with 4 additions and 3 deletions
|
@ -49,12 +49,13 @@ export default class VerificationPanel extends React.PureComponent {
|
|||
Verify by emoji
|
||||
</AccessibleButton>;
|
||||
|
||||
if (request.requestEvent && request.requestEvent.getId()) {
|
||||
const crossSigningInfo = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
|
||||
const myKeyId = MatrixClientPeg.get().getCrossSigningId();
|
||||
if (request.requestEvent && request.requestEvent.getId() && crossSigningInfo) {
|
||||
const qrCodeKeys = [
|
||||
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
|
||||
[MatrixClientPeg.get().getCrossSigningId(), MatrixClientPeg.get().getCrossSigningId()],
|
||||
[myKeyId, myKeyId],
|
||||
];
|
||||
const crossSigningInfo = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
|
||||
const qrCode = <VerificationQRCode
|
||||
keyholderUserId={MatrixClientPeg.get().getUserId()}
|
||||
requestEventId={request.requestEvent.getId()}
|
||||
|
|
Loading…
Reference in a new issue