Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix not being able to filter community rooms - fixes element-hq/eleme…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebarnard1 committed Nov 8, 2017
1 parent 120e7b8 commit c1d9d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/groups/GroupRoomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit c1d9d37

Please sign in to comment.