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

Commit 9c0868c

Browse files
authored
Fix upgraded rooms wrongly showing up in spotlight (#7341)
1 parent 58e79d8 commit 9c0868c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/SpotlightDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", onFinished }) =>
177177
const lcQuery = trimmedQuery.toLowerCase();
178178
const normalizedQuery = normalize(trimmedQuery);
179179

180-
return cli.getRooms().filter(r => {
180+
return cli.getVisibleRooms().filter(r => {
181181
return r.getCanonicalAlias()?.includes(lcQuery) || r.normalizedName.includes(normalizedQuery);
182182
});
183183
}, [cli, query]);

0 commit comments

Comments
 (0)