Merge pull request #1686 from matrix-org/luke/fix-get-users-rooms-for-joined-groups

Prefetch group data for all joined groups when RoomList mounts
pull/21833/head
David Baker 2018-01-04 18:19:37 +00:00 committed by GitHub
commit 50aeea8f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }