Skip to content

Commit

Permalink
Fetch group data for all tags instead of those selected
Browse files Browse the repository at this point in the history
so that tag switching is not delayed by fetching group datia, i.e group members and rooms.
  • Loading branch information
lukebarnard1 committed Jan 3, 2018
1 parent d495519 commit 07bbe26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/RoomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = React.createClass({
this._visibleRooms = [];
// When the selected tags are changed, initialise a group store if necessary
this._tagStoreToken = TagOrderStore.addListener(() => {
TagOrderStore.getSelectedTags().forEach((tag) => {
TagOrderStore.getOrderedTags().forEach((tag) => {
if (tag[0] !== '+' || this._groupStores[tag]) {
return;
}
Expand Down

0 comments on commit 07bbe26

Please sign in to comment.