mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Fix not being able to filter community rooms - fixes vector-im/vector-web#5538
This commit is contained in:
parent
120e7b821f
commit
c1d9d3714a
@ -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;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user