You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Cache shouldLoadBackupStatus in state
This commit is contained in:
@@ -39,7 +39,7 @@ export default class LogoutDialog extends React.Component {
|
||||
const shouldLoadBackupStatus = !lowBandwidth && !MatrixClientPeg.get().getKeyBackupEnabled();
|
||||
|
||||
this.state = {
|
||||
lowBandwidth: lowBandwidth,
|
||||
shouldLoadBackupStatus: shouldLoadBackupStatus,
|
||||
loading: shouldLoadBackupStatus,
|
||||
backupInfo: null,
|
||||
error: null,
|
||||
@@ -113,7 +113,7 @@ export default class LogoutDialog extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
if (!this.state.lowBandwidth && !MatrixClientPeg.get().getKeyBackupEnabled()) {
|
||||
if (this.state.shouldLoadBackupStatus) {
|
||||
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
||||
|
||||
const description = <div>
|
||||
|
||||
Reference in New Issue
Block a user