Revert "Do not filter users post search (#9556)" (#11288)

This commit is contained in:
Michael Telatynski 2023-07-18 09:26:54 +01:00 committed by GitHub
parent ba90e0b255
commit d9d0b84152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 28 deletions

View file

@ -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 {