Move key backup init to componentDidMount

This commit is contained in:
Travis Ralston 2019-07-08 11:53:26 -06:00
parent 3e0be640fd
commit d2ab0a5ca7

View file

@ -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});
});