mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
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…
Reference in a new issue