Do not filter users post search (#9556)
* Do not filter users post search Signed-off-by: Maximilian Malek <maximilian.malek@uni-graz.at> * Iterate * Iterate --------- Signed-off-by: Maximilian Malek <maximilian.malek@uni-graz.at> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -399,7 +399,8 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
||||
)
|
||||
return; // bail, does not match query
|
||||
} else if (isMemberResult(entry)) {
|
||||
if (!entry.query?.some((q) => q.includes(lcQuery))) return; // bail, does not match query
|
||||
// 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.
|
||||
} 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