Reset 'first sync' flag / promise on log in

Otherwise on any logins after the first,we always think the first
sync has completed.
pull/21833/head
David Baker 2017-06-06 11:36:33 +01:00
parent 22df03944c
commit 12d2480916
1 changed files with 2 additions and 0 deletions

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(