mirror of https://github.com/vector-im/riot-web
Fetch group data for all tags instead of those selected
so that tag switching is not delayed by fetching group data, i.e group members and rooms.pull/21833/head
parent
d495519986
commit
a2bb240dcb
|
@ -96,7 +96,7 @@ module.exports = React.createClass({
|
||||||
this._visibleRooms = [];
|
this._visibleRooms = [];
|
||||||
// When the selected tags are changed, initialise a group store if necessary
|
// When the selected tags are changed, initialise a group store if necessary
|
||||||
this._tagStoreToken = TagOrderStore.addListener(() => {
|
this._tagStoreToken = TagOrderStore.addListener(() => {
|
||||||
TagOrderStore.getSelectedTags().forEach((tag) => {
|
TagOrderStore.getOrderedTags().forEach((tag) => {
|
||||||
if (tag[0] !== '+' || this._groupStores[tag]) {
|
if (tag[0] !== '+' || this._groupStores[tag]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue