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:
parent
22df03944c
commit
12d2480916
1 changed files with 2 additions and 0 deletions
|
@ -927,6 +927,8 @@ module.exports = React.createClass({
|
||||||
dis.dispatch({action: 'view_home_page'});
|
dis.dispatch({action: 'view_home_page'});
|
||||||
} else if (this._is_registered) {
|
} else if (this._is_registered) {
|
||||||
this._is_registered = false;
|
this._is_registered = false;
|
||||||
|
this.firstSyncComplete = false;
|
||||||
|
this.firstSyncPromise = q.defer();
|
||||||
|
|
||||||
// Set the display name = user ID localpart
|
// Set the display name = user ID localpart
|
||||||
MatrixClientPeg.get().setDisplayName(
|
MatrixClientPeg.get().setDisplayName(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue