From cc27894fc92e5e3c9ce35f11fbebe2a973e43224 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 16 Mar 2020 18:59:07 +0000 Subject: [PATCH] Fix key backup trust text for cross-signing This fixes the key backup panel to use the correct object when checking whether a device is verified or unverified via cross-signing trust. --- src/components/views/settings/KeyBackupPanel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/views/settings/KeyBackupPanel.js b/src/components/views/settings/KeyBackupPanel.js index 73be2bad9f..27fdb2cb56 100644 --- a/src/components/views/settings/KeyBackupPanel.js +++ b/src/components/views/settings/KeyBackupPanel.js @@ -277,25 +277,25 @@ export default class KeyBackupPanel extends React.PureComponent { "Backup has an invalid signature from this session", {}, { validity }, ); - } else if (sig.valid && sig.device.isVerified()) { + } else if (sig.valid && sig.deviceTrust.isVerified()) { sigStatus = _t( "Backup has a valid signature from " + "verified session ", {}, { validity, verify, device }, ); - } else if (sig.valid && !sig.device.isVerified()) { + } else if (sig.valid && !sig.deviceTrust.isVerified()) { sigStatus = _t( "Backup has a valid signature from " + "unverified session ", {}, { validity, verify, device }, ); - } else if (!sig.valid && sig.device.isVerified()) { + } else if (!sig.valid && sig.deviceTrust.isVerified()) { sigStatus = _t( "Backup has an invalid signature from " + "verified session ", {}, { validity, verify, device }, ); - } else if (!sig.valid && !sig.device.isVerified()) { + } else if (!sig.valid && !sig.deviceTrust.isVerified()) { sigStatus = _t( "Backup has an invalid signature from " + "unverified session ",