1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge pull request #5539 from matrix-org/jryans/soft-logout-crash

Fix soft crash on soft logout page
This commit is contained in:
J. Ryan Stinnett
2021-01-13 12:35:31 +00:00
committed by GitHub

View File

@@ -72,9 +72,12 @@ export default class SoftLogout extends React.Component {
this._initLogin(); this._initLogin();
MatrixClientPeg.get().countSessionsNeedingBackup().then(remaining => { const cli = MatrixClientPeg.get();
this.setState({keyBackupNeeded: remaining > 0}); if (cli.isCryptoEnabled()) {
}); cli.countSessionsNeedingBackup().then(remaining => {
this.setState({ keyBackupNeeded: remaining > 0 });
});
}
} }
onClearAll = () => { onClearAll = () => {