Merge pull request #1722 from matrix-org/luke/load-tags-after-first-sync

Use correct condition for getting account data after first sync
pull/21833/head
David Baker 2018-01-30 15:21:12 +00:00 committed by GitHub
commit cfd1f28258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');