diff --git a/src/components/views/settings/KeyBackupPanel.js b/src/components/views/settings/KeyBackupPanel.js index cc1b3fd017..82d464c05e 100644 --- a/src/components/views/settings/KeyBackupPanel.js +++ b/src/components/views/settings/KeyBackupPanel.js @@ -227,11 +227,17 @@ export default class KeyBackupPanel extends React.PureComponent { "Backup has a signature from unknown device with ID %(deviceId)s.", { deviceId: sig.deviceId }, { verify }, ); - } else if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()) { + } else if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key() && sig.valid) { sigStatus = _t( "Backup has a valid signature from this device", {}, { validity }, ); + } else if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key() && !sig.valid) { + // it can happen... + sigStatus = _t( + "Backup has an invalid signature from this device", + {}, { validity }, + ); } else if (sig.valid && sig.device.isVerified()) { sigStatus = _t( "Backup has a valid signature from " +