From 3732fd29d5318ba28b74f6076a0d687940f51ef0 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 14 Dec 2017 16:17:06 +0000 Subject: [PATCH] Comments for instance variables --- src/components/views/rooms/RoomList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index fbb563cf14..95d910c880 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -86,7 +86,12 @@ module.exports = React.createClass({ cli.on("Group.myMembership", this._onGroupMyMembership); this._groupStores = {}; - this._selectedTagsRoomIdsForGroup = {}; + // A map between tags which are group IDs and the room IDs of rooms that should be kept + // in the room list when filtering by that tag. + this._selectedTagsRoomIdsForGroup = { + // $groupId: [$roomId1, $roomId2, ...], + }; + // All rooms that should be kept in the room list when filtering this._selectedTagsRoomIds = []; // When the selected tags are changed, initialise a group store if necessary this._filterStoreToken = FilterStore.addListener(() => {