mirror of https://github.com/vector-im/riot-web
Show if sig is from this device
parent
f507aac3d5
commit
12d10cccef
|
@ -164,7 +164,12 @@ export default class KeyBackupPanel extends React.Component {
|
||||||
device: sub => <span className="mx_KeyBackupPanel_deviceName">{sig.device.getDisplayName()}</span>,
|
device: sub => <span className="mx_KeyBackupPanel_deviceName">{sig.device.getDisplayName()}</span>,
|
||||||
};
|
};
|
||||||
let sigStat;
|
let sigStat;
|
||||||
if (sig.valid && sig.device.isVerified()) {
|
if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()) {
|
||||||
|
sigStat = _t(
|
||||||
|
"Backup has a <validity>valid</validity> signature from this device",
|
||||||
|
{}, sigStatSub,
|
||||||
|
);
|
||||||
|
} else if (sig.valid && sig.device.isVerified()) {
|
||||||
sigStat = _t(
|
sigStat = _t(
|
||||||
"Backup has a <validity>valid</validity> signature from " +
|
"Backup has a <validity>valid</validity> signature from " +
|
||||||
"<verify>verified</verify> device <device>x</device>",
|
"<verify>verified</verify> device <device>x</device>",
|
||||||
|
|
|
@ -304,6 +304,7 @@
|
||||||
"Unable to load key backup status": "Unable to load key backup status",
|
"Unable to load key backup status": "Unable to load key backup status",
|
||||||
"This device is uploading keys to this backup": "This device is uploading keys to this backup",
|
"This device is uploading keys to this backup": "This device is uploading keys to this backup",
|
||||||
"This device is <b>not</b> uploading keys to this backup": "This device is <b>not</b> uploading keys to this backup",
|
"This device is <b>not</b> uploading keys to this backup": "This device is <b>not</b> uploading keys to this backup",
|
||||||
|
"Backup has a <validity>valid</validity> signature from this device": "Backup has a <validity>valid</validity> signature from this device",
|
||||||
"Backup has a <validity>valid</validity> signature from <verify>verified</verify> device <device>x</device>": "Backup has a <validity>valid</validity> signature from <verify>verified</verify> device <device>x</device>",
|
"Backup has a <validity>valid</validity> signature from <verify>verified</verify> device <device>x</device>": "Backup has a <validity>valid</validity> signature from <verify>verified</verify> device <device>x</device>",
|
||||||
"Backup has a <validity>valid</validity> signature from <verify>unverified</verify> device <device></device>": "Backup has a <validity>valid</validity> signature from <verify>unverified</verify> device <device></device>",
|
"Backup has a <validity>valid</validity> signature from <verify>unverified</verify> device <device></device>": "Backup has a <validity>valid</validity> signature from <verify>unverified</verify> device <device></device>",
|
||||||
"Backup has an <validity>invalid</validity> signature from <verify>verified</verify> device <device></device>": "Backup has an <validity>invalid</validity> signature from <verify>verified</verify> device <device></device>",
|
"Backup has an <validity>invalid</validity> signature from <verify>verified</verify> device <device></device>": "Backup has an <validity>invalid</validity> signature from <verify>verified</verify> device <device></device>",
|
||||||
|
|
Loading…
Reference in New Issue