From c1d9d3714ad0cd232c0c5ad00aa7f9b30d42671f Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 8 Nov 2017 10:55:51 +0000 Subject: [PATCH] Fix not being able to filter community rooms - fixes vector-im/vector-web#5538 --- src/components/views/groups/GroupRoomList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/groups/GroupRoomList.js b/src/components/views/groups/GroupRoomList.js index aeded2dfb0..ff27d093b2 100644 --- a/src/components/views/groups/GroupRoomList.js +++ b/src/components/views/groups/GroupRoomList.js @@ -94,7 +94,7 @@ export default React.createClass({ let roomList = this.state.rooms; if (query) { roomList = roomList.filter((room) => { - const matchesName = (room.name || "").toLowerCase().include(query); + const matchesName = (room.name || "").toLowerCase().includes(query); const matchesAlias = (room.canonicalAlias || "").toLowerCase().includes(query); return matchesName || matchesAlias; });