Reset 'first sync' flag / promise on log in

Otherwise on any logins after the first,we always think the first
sync has completed.
This commit is contained in:
David Baker 2017-06-06 11:36:33 +01:00
parent 22df03944c
commit 12d2480916

View file

@ -927,6 +927,8 @@ module.exports = React.createClass({
dis.dispatch({action: 'view_home_page'});
} else if (this._is_registered) {
this._is_registered = false;
this.firstSyncComplete = false;
this.firstSyncPromise = q.defer();
// Set the display name = user ID localpart
MatrixClientPeg.get().setDisplayName(