From 1346f47a12a2850b64e9555e999c8f3faab480d4 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Thu, 14 Jun 2018 14:18:39 +0100
Subject: [PATCH] allow filtering Group Invite Tiles with the same search
filter
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
src/components/views/rooms/RoomList.js | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js
index 2722bad88b..c329e3f2a0 100644
--- a/src/components/views/rooms/RoomList.js
+++ b/src/components/views/rooms/RoomList.js
@@ -583,13 +583,18 @@ module.exports = React.createClass({
}
},
- _makeGroupInviteTiles() {
+ _makeGroupInviteTiles(filter) {
const ret = [];
+ const lcFilter = filter && filter.toLowerCase();
const GroupInviteTile = sdk.getComponent('groups.GroupInviteTile');
for (const group of MatrixClientPeg.get().getGroups()) {
- if (group.myMembership !== 'invite') continue;
- ret.push(