Merge pull request #4431 from matrix-org/dbkr/fix_key_backup_stored_debug

Fix key backup debug panel
This commit is contained in:
David Baker 2020-04-16 21:14:37 +01:00 committed by GitHub
commit 3d99125ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ export default class KeyBackupPanel extends React.PureComponent {
async _checkKeyBackupStatus() { async _checkKeyBackupStatus() {
try { try {
const {backupInfo, trustInfo} = await MatrixClientPeg.get().checkKeyBackup(); const {backupInfo, trustInfo} = await MatrixClientPeg.get().checkKeyBackup();
const backupKeyStored = await MatrixClientPeg.get().isKeyBackupKeyStored(); const backupKeyStored = Boolean(await MatrixClientPeg.get().isKeyBackupKeyStored());
this.setState({ this.setState({
backupInfo, backupInfo,
backupSigStatus: trustInfo, backupSigStatus: trustInfo,