mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Use correct condition for getting account data after first sync
so that we can get tags sooner.
This commit is contained in:
parent
02824cfacf
commit
40907ecf29
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue