parent
ba90e0b255
commit
d9d0b84152
3 changed files with 13 additions and 28 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue