Merge pull request #3795 from matrix-org/dbkr/key_backup_checkdevicetrust

Use deviceTrust when displaying key backup trust status
This commit is contained in:
David Baker 2020-01-03 14:52:40 +00:00 committed by GitHub
commit 23dffb69ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,7 +270,7 @@ export default class KeyBackupPanel extends React.PureComponent {
{sub}
</span>;
const verify = sub =>
<span className={sig.device && sig.device.isVerified() ? 'mx_KeyBackupPanel_deviceVerified' : 'mx_KeyBackupPanel_deviceNotVerified'}>
<span className={sig.device && sig.deviceTrust.isVerified() ? 'mx_KeyBackupPanel_deviceVerified' : 'mx_KeyBackupPanel_deviceNotVerified'}>
{sub}
</span>;
const device = sub => <span className="mx_KeyBackupPanel_deviceName">{deviceName}</span>;