mirror of https://github.com/vector-im/riot-web
Merge pull request #4223 from matrix-org/jryans/key-backup-text-xsign
Fix key backup trust text for cross-signingpull/21833/head
commit
e51a7f3ca4
|
@ -277,25 +277,25 @@ export default class KeyBackupPanel extends React.PureComponent {
|
||||||
"Backup has an <validity>invalid</validity> signature from this session",
|
"Backup has an <validity>invalid</validity> signature from this session",
|
||||||
{}, { validity },
|
{}, { validity },
|
||||||
);
|
);
|
||||||
} else if (sig.valid && sig.device.isVerified()) {
|
} else if (sig.valid && sig.deviceTrust.isVerified()) {
|
||||||
sigStatus = _t(
|
sigStatus = _t(
|
||||||
"Backup has a <validity>valid</validity> signature from " +
|
"Backup has a <validity>valid</validity> signature from " +
|
||||||
"<verify>verified</verify> session <device></device>",
|
"<verify>verified</verify> session <device></device>",
|
||||||
{}, { validity, verify, device },
|
{}, { validity, verify, device },
|
||||||
);
|
);
|
||||||
} else if (sig.valid && !sig.device.isVerified()) {
|
} else if (sig.valid && !sig.deviceTrust.isVerified()) {
|
||||||
sigStatus = _t(
|
sigStatus = _t(
|
||||||
"Backup has a <validity>valid</validity> signature from " +
|
"Backup has a <validity>valid</validity> signature from " +
|
||||||
"<verify>unverified</verify> session <device></device>",
|
"<verify>unverified</verify> session <device></device>",
|
||||||
{}, { validity, verify, device },
|
{}, { validity, verify, device },
|
||||||
);
|
);
|
||||||
} else if (!sig.valid && sig.device.isVerified()) {
|
} else if (!sig.valid && sig.deviceTrust.isVerified()) {
|
||||||
sigStatus = _t(
|
sigStatus = _t(
|
||||||
"Backup has an <validity>invalid</validity> signature from " +
|
"Backup has an <validity>invalid</validity> signature from " +
|
||||||
"<verify>verified</verify> session <device></device>",
|
"<verify>verified</verify> session <device></device>",
|
||||||
{}, { validity, verify, device },
|
{}, { validity, verify, device },
|
||||||
);
|
);
|
||||||
} else if (!sig.valid && !sig.device.isVerified()) {
|
} else if (!sig.valid && !sig.deviceTrust.isVerified()) {
|
||||||
sigStatus = _t(
|
sigStatus = _t(
|
||||||
"Backup has an <validity>invalid</validity> signature from " +
|
"Backup has an <validity>invalid</validity> signature from " +
|
||||||
"<verify>unverified</verify> session <device></device>",
|
"<verify>unverified</verify> session <device></device>",
|
||||||
|
|
Loading…
Reference in New Issue