mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 04:51:47 +03:00
Merge pull request #2919 from jryans/key-backup-this-device
Fix key backup status when missing device
This commit is contained in:
commit
c0cf6a35c6
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ export default class KeyBackupPanel extends React.PureComponent {
|
||||||
{sub}
|
{sub}
|
||||||
</span>;
|
</span>;
|
||||||
const device = sub => <span className="mx_KeyBackupPanel_deviceName">{deviceName}</span>;
|
const device = sub => <span className="mx_KeyBackupPanel_deviceName">{deviceName}</span>;
|
||||||
const fromThisDevice = sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key();
|
const fromThisDevice = (
|
||||||
|
sig.device &&
|
||||||
|
sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()
|
||||||
|
);
|
||||||
let sigStatus;
|
let sigStatus;
|
||||||
if (!sig.device) {
|
if (!sig.device) {
|
||||||
sigStatus = _t(
|
sigStatus = _t(
|
||||||
|
|
Loading…
Reference in a new issue