Cache shouldLoadBackupStatus in state
This commit is contained in:
parent
1c84abae44
commit
16a46be00f
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue