@@ -399,8 +399,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
||||
)
|
||||
return; // bail, does not match query
|
||||
} else if (isMemberResult(entry)) {
|
||||
// Do not filter users as we rely on the server to filter them for us.
|
||||
// The server may filter based on fields we do not have access to, e.g. e-mail addresses.
|
||||
if (!entry.query?.some((q) => q.includes(lcQuery))) return; // bail, does not match query
|
||||
} else if (isPublicRoomResult(entry)) {
|
||||
if (!entry.query?.some((q) => q.includes(lcQuery))) return; // bail, does not match query
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user