mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-30 10:51:13 +02:00
tidy up
This commit is contained in:
parent
26980e2ad5
commit
e54429680b
@ -597,8 +597,7 @@ module.exports = createReactClass({
|
||||
if (filter[0] === "#" && room.getAliases().some((alias) => alias.toLowerCase().startsWith(lcFilter))) {
|
||||
return true;
|
||||
}
|
||||
const lcRoomName = room.name ? utils.removeHiddenChars(room.name).toLowerCase() : "";
|
||||
return lcRoomName.includes(fuzzyFilter);
|
||||
return room.name ? utils.removeHiddenChars(room.name).toLowerCase().includes(fuzzyFilter) : false;
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user