This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/components/structures Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -919,10 +919,6 @@ module.exports = React.createClass({
919
919
dis . dispatch ( { action : 'view_home_page' } ) ;
920
920
} else if ( this . _is_registered ) {
921
921
this . _is_registered = false ;
922
- // reset the 'have completed first sync' flag,
923
- // since we've just logged in and will be about to sync
924
- this . firstSyncComplete = false ;
925
- this . firstSyncPromise = q . defer ( ) ;
926
922
927
923
// Set the display name = user ID localpart
928
924
MatrixClientPeg . get ( ) . setDisplayName (
@@ -992,6 +988,12 @@ module.exports = React.createClass({
992
988
// Set ready to false now, then it'll be set to true when the sync
993
989
// listener we set below fires.
994
990
this . setState ( { ready : false } ) ;
991
+
992
+ // reset the 'have completed first sync' flag,
993
+ // since we're about to start the client and therefore about
994
+ // to do the first sync
995
+ this . firstSyncComplete = false ;
996
+ this . firstSyncPromise = q . defer ( ) ;
995
997
const cli = MatrixClientPeg . get ( ) ;
996
998
997
999
// Allow the JS SDK to reap timeline events. This reduces the amount of
You can’t perform that action at this time.
0 commit comments