1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

Fix a few bugs with TagOrderStore:

- Have TagOrderStore listen for MatrixSync actions so that it can initialise
   tag ordering state.
 - Expose an empty list until the client has done its first sync and has
   fetched list of joined groups
This commit is contained in:
Luke Barnard
2017-12-11 17:07:31 +00:00
parent df88b71dbb
commit 991ea4ebe5
4 changed files with 70 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ const TagPanel = React.createClass({
return;
}
const orderedTags = TagOrderStore.getOrderedTags() || TagOrderStore.getAllTags();
const orderedTags = TagOrderStore.getOrderedTags();
const orderedGroupTags = orderedTags.filter((t) => t[0] === '+');
Promise.all(orderedGroupTags.map(
(groupId) => FlairStore.getGroupProfileCached(this.context.matrixClient, groupId),