pull/21833/head
Michael Telatynski 2019-12-19 15:28:11 +00:00
parent 26980e2ad5
commit e54429680b
1 changed files with 1 additions and 2 deletions

View File

@ -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;
});
},