Skip to content

Commit

Permalink
Define fields to by searched on member lists
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Jul 14, 2022
1 parent a2524cc commit b3b496d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/meteor/server/lib/findUsersOfRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function findUsersOfRoom({
...(limit > 0 && { limit }),
};

return Users.findPaginatedByActiveUsersExcept(filter, undefined, options, undefined, [
const searchFields = settings.get<string>('Accounts_SearchFields').trim().split(',');

return Users.findPaginatedByActiveUsersExcept(filter, undefined, options, searchFields, [
{
__rooms: rid,
...(status && { status }),
Expand Down

0 comments on commit b3b496d

Please sign in to comment.