Move key backup init to componentDidMount
This commit is contained in:
parent
3e0be640fd
commit
d2ab0a5ca7
1 changed files with 0 additions and 2 deletions
|
@ -74,9 +74,7 @@ export default class SoftLogout extends React.Component {
|
|||
|
||||
componentDidMount(): void {
|
||||
this._initLogin();
|
||||
}
|
||||
|
||||
componentWillMount(): void {
|
||||
MatrixClientPeg.get().flagAllGroupSessionsForBackup().then(remaining => {
|
||||
this.setState({keyBackupNeeded: remaining > 0});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue