From 40907ecf2925a9907d2f4a2e83875537dc438751 Mon Sep 17 00:00:00 2001 From: lukebarnard Date: Fri, 26 Jan 2018 19:39:06 +0100 Subject: [PATCH] Use correct condition for getting account data after first sync so that we can get tags sooner. --- src/stores/TagOrderStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/TagOrderStore.js b/src/stores/TagOrderStore.js index effd8287c7..69b22797fb 100644 --- a/src/stores/TagOrderStore.js +++ b/src/stores/TagOrderStore.js @@ -48,7 +48,7 @@ class TagOrderStore extends Store { switch (payload.action) { // Initialise state after initial sync case 'MatrixActions.sync': { - if (!(payload.prevState === 'PREPARED' && payload.state === 'SYNCING')) { + if (!(payload.prevState !== 'PREPARED' && payload.state === 'PREPARED')) { break; } const tagOrderingEvent = payload.matrixClient.getAccountData('im.vector.web.tag_ordering');