1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2026-01-03 21:42:32 +03:00

Merge pull request #1033 from matrix-org/dbkr/always_show_spinner_during_first_sync

Always show the spinner during the first sync
This commit is contained in:
David Baker
2017-06-05 16:56:32 +01:00
committed by GitHub

View File

@@ -507,7 +507,11 @@ module.exports = React.createClass({
this._onSetTheme(payload.value);
break;
case 'on_logging_in':
this.setState({loggingIn: true});
// We are now logging in, so set the state to reflect that
// and also that we're not ready (we'll be marked as logged
// in once the login completes, then ready once the sync
// completes).
this.setState({loggingIn: true, ready: false});
break;
case 'on_logged_in':
this._onLoggedIn(payload.teamToken);