You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fix key backup status when missing device
We might not have the device in `sig.device`, so we have to check for it's existence first. This fixes the "Unable to load key backup status" message that is incorrectly triggering. Fixes https://github.com/vector-im/riot-web/issues/9442
This commit is contained in:
@@ -221,7 +221,10 @@ export default class KeyBackupPanel extends React.PureComponent {
|
||||
{sub}
|
||||
</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;
|
||||
if (!sig.device) {
|
||||
sigStatus = _t(
|
||||
|
||||
Reference in New Issue
Block a user