Fix upgraded rooms wrongly showing up in spotlight (#7341)
This commit is contained in:
parent
58e79d836d
commit
9c0868ce4f
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", onFinished }) =>
|
|||
const lcQuery = trimmedQuery.toLowerCase();
|
||||
const normalizedQuery = normalize(trimmedQuery);
|
||||
|
||||
return cli.getRooms().filter(r => {
|
||||
return cli.getVisibleRooms().filter(r => {
|
||||
return r.getCanonicalAlias()?.includes(lcQuery) || r.normalizedName.includes(normalizedQuery);
|
||||
});
|
||||
}, [cli, query]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue