1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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 { componentDidMount(): void {
this._initLogin(); this._initLogin();
}
componentWillMount(): void {
MatrixClientPeg.get().flagAllGroupSessionsForBackup().then(remaining => { MatrixClientPeg.get().flagAllGroupSessionsForBackup().then(remaining => {
this.setState({keyBackupNeeded: remaining > 0}); this.setState({keyBackupNeeded: remaining > 0});
}); });