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
|
Verify by emoji
|
||||||
</AccessibleButton>;
|
</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 = [
|
const qrCodeKeys = [
|
||||||
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
|
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
|
||||||
[MatrixClientPeg.get().getCrossSigningId(), MatrixClientPeg.get().getCrossSigningId()],
|
[myKeyId, myKeyId],
|
||||||
];
|
];
|
||||||
const crossSigningInfo = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
|
|
||||||
const qrCode = <VerificationQRCode
|
const qrCode = <VerificationQRCode
|
||||||
keyholderUserId={MatrixClientPeg.get().getUserId()}
|
keyholderUserId={MatrixClientPeg.get().getUserId()}
|
||||||
requestEventId={request.requestEvent.getId()}
|
requestEventId={request.requestEvent.getId()}
|
||||||
|
|
Loading…
Reference in a new issue