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

Commit

Permalink
Fix upgraded rooms wrongly showing up in spotlight (#7341)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Dec 13, 2021
1 parent 58e79d8 commit 9c0868c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/dialogs/SpotlightDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 9c0868c

Please sign in to comment.