"Add members" broken in 4.5.0? Can only see the first 10

Description

When trying to add new members to a channel/team/direct message
during a creation or when updating an existing one only the first 10
users are displayed. When starting to type in the “Add members”
field the list is only narrowed down. So there is no possibility to fine
someone not among the first 10.

The list seems to be sorted. In our case I can only see users with names
starting with A to H. So far I failed to add e.g. ‘Philipp’ to a channel.

In some cases a invitation link can be used as a workaround.

That problem seems to be new and must have been introduced recently.
Presently I believe that the issue is hiding in the front-end part of the code.
When I e.g. start a new channel I see this API call:

/api/v1/users.autocomplete?selector={“term”: “”}

IMHO it seems reasonable that autocomplete function only returns 10 result.
But I would expect that once I type the API call is repeated with the search
term I tipped in. That seems not to happen.

A fix or at least better workaround would be very welcome.

Some users report also that the Search button only find people with which way
already had direct messages. That part I can’t reproduce because I already had
direct messages with everyone.

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Debian 10
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ?
  • NodeJS Version: 14.18.3 - x64
  • MongoDB Version: 4.2.17
  • Proxy: apache
  • Firewalls involved: -

Hi! Welcome to our forums!

Please, check this other forum thread:
https://forums.rocket.chat/t/cannot-add-users-to-channels-groups-anymore/13533/3

Thanks. Can confirm that it is fixed with 4.5.1.

1 Like