You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Move key backup init to componentDidMount
This commit is contained in:
@@ -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});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user