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