mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 10:21:44 +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 {
|
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});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user