bug: Leave group but still appear in mention list
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:
- Create group
- user A check mention list
- user C using channel.removeMember(), remove himself from group.
- 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
https://github.com/GetStream/stream-chat-react/assets/17897146/d34bba95-dc24-4500-a9bf-67f54c67ffe1
Package version
- stream-chat-react: 11.1.2
- stream-chat-css: 4.2.0
- stream-chat-js: 8.14.4
@minhth-1529 thank you for the report. Adding the bug to the list we plan to tackle in the following weeks.
@MartinCupela thank you
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.
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?
@MartinCupela Iām having the same issue where a user leaves but is still listed in the suggestions menu. Is there any known workaround for this?
@MartinCupela
I have the same as issue too