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

bug: Leave group but still appear in mention list #2224

Open
minhth1529 opened this issue Dec 22, 2023 · 4 comments
Open

bug: Leave group but still appear in mention list #2224

minhth1529 opened this issue Dec 22, 2023 · 4 comments
Labels
bug Something isn't working needs api support requires backend support to resolve status:confirmed Described issue has been reproduced by the repo maintainer

Comments

@minhth1529
Copy link

Describe the bug

My group has three members, called A, B, and C, when C is using the function channel.removeMember() aims to remove himself from the group, but now, in the group, A still sees C in the mention list.

To Reproduce

Steps to reproduce the behavior:

  1. Create group
  2. user A check mention list
  3. user C using channel.removeMember(), remove himself from group.
  4. now user A still see C in mention list

Expected behavior

mention list re-render, only members of the group will appear in the mention list.

Screenshots

Screen.Recording.2023-12-22.at.9.29.50.AM.mp4

Package version

  • stream-chat-react: 11.1.2
  • stream-chat-css: 4.2.0
  • stream-chat-js: 8.14.4
@minhth1529 minhth1529 added bug Something isn't working status: unconfirmed labels Dec 22, 2023
@MartinCupela MartinCupela added status:confirmed Described issue has been reproduced by the repo maintainer and removed status: unconfirmed labels Dec 22, 2023
@MartinCupela
Copy link
Contributor

@minhth-1529 thank you for the report. Adding the bug to the list we plan to tackle in the following weeks.

@minhth1529
Copy link
Author

@MartinCupela thank you

@MartinCupela MartinCupela added the needs api support requires backend support to resolve label Dec 22, 2023
@MartinCupela
Copy link
Contributor

This issue needs support from the API. The root cause is that on event notification.removed_from_channel the SDK is not calling channel.stopWatching(). As a result of that the mentions suggestion list still contains channel watchers that have been removed as members from the channel.

cc @totalimmersion - a user cannot stop watching a channel a from which it was previously removed.

image

@marioacero
Copy link

I have a similar issue where users invited are displayed on the mentioned list, I need to show only users who accepted the invite, how can I achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs api support requires backend support to resolve status:confirmed Described issue has been reproduced by the repo maintainer
Projects
None yet
Development

No branches or pull requests

3 participants