Use correct condition for getting account data after first sync

so that we can get tags sooner.
This commit is contained in:
lukebarnard 2018-01-26 19:39:06 +01:00
parent 02824cfacf
commit 40907ecf29

View file

@ -48,7 +48,7 @@ class TagOrderStore extends Store {
switch (payload.action) { switch (payload.action) {
// Initialise state after initial sync // Initialise state after initial sync
case 'MatrixActions.sync': { case 'MatrixActions.sync': {
if (!(payload.prevState === 'PREPARED' && payload.state === 'SYNCING')) { if (!(payload.prevState !== 'PREPARED' && payload.state === 'PREPARED')) {
break; break;
} }
const tagOrderingEvent = payload.matrixClient.getAccountData('im.vector.web.tag_ordering'); const tagOrderingEvent = payload.matrixClient.getAccountData('im.vector.web.tag_ordering');