Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@mentions in a channel appear to only select from top 100 members #290

Closed
TravisHardman opened this issue May 21, 2020 · 3 comments
Closed

Comments

@TravisHardman
Copy link

We came across an issue where many users in a channel were not appearing in the autocomplete for @mentions. It looks like the flow works as follows:

  • Channel info retrieved by a call to the "query channels" api
  • Each channel has a "members" attribute with a maximum of 100 members in it
  • When typing @mentions, those 100 members are the only ones who appear in the autocomplete, even if the channel has thousands more

It seems like the autocomplete for @mentions should either trigger an API call to get all members in the channel, or otherwise the component should pull a complete list of members for the channel from the start, rather than a list of only 100.

Is there a workaround to this issue or is a fix needed?

@kmutlow
Copy link

kmutlow commented May 22, 2020

It would be really handy if there was an extension point so that we could override the default @mentions user lookup behaviour. Not sure if it exists but we haven't stumbled across it thus far. An example use-case would be to @mention someone that is not currently in the channel and invite them in.

@vishalnarkhede
Copy link
Contributor

vishalnarkhede commented May 22, 2020

Hey @TravisHardman @kmutlow We are already working on the fixing this and providing API endpoint to fetch members for channel. It's currently in testing phase and will be published soon within couple of weeks. I will let you guys know once it is ready :)

GetStream/stream-chat-js#321

@vini-btc
Copy link
Contributor

Since 1.2.0 mentions will now use the queryMembers endpoint if the channel has more than 100 members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants