mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-16 18:01:57 +02:00
Move key backup init to componentDidMount
This commit is contained in:
parent
3e0be640fd
commit
d2ab0a5ca7
@ -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…
x
Reference in New Issue
Block a user