You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Fix upgraded rooms wrongly showing up in spotlight (#7341)
This commit is contained in:
committed by
GitHub
parent
58e79d836d
commit
9c0868ce4f
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user