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

Always show the spinner during the first sync
pull/21833/head
David Baker 2017-06-05 16:56:32 +01:00 committed by GitHub
commit 015cac9a9e
1 changed files with 5 additions and 1 deletions

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);