mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Merge pull request #1041 from matrix-org/dbkr/reset_first_sync_promise
Reset 'first sync' flag / promise on log in
This commit is contained in:
commit
9c30de0eaa
@ -927,6 +927,10 @@ 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;
|
||||||
|
// reset the 'have completed first sync' flag,
|
||||||
|
// since we've just logged in and will be about to sync
|
||||||
|
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 New Issue
Block a user