stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug: Leave group but still appear in mention list

Open minhth1529 opened this issue 2 years ago • 6 comments

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

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

minhth1529 avatar Dec 22 '23 02:12 minhth1529

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

MartinCupela avatar Dec 22 '23 08:12 MartinCupela

@MartinCupela thank you

minhth1529 avatar Dec 22 '23 08:12 minhth1529

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

MartinCupela avatar Dec 22 '23 09:12 MartinCupela

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?

marioacero avatar Jun 14 '24 14:06 marioacero

@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?

HrantAbrahamyan avatar Dec 18 '24 12:12 HrantAbrahamyan

@MartinCupela

I have the same as issue too

vihan85 avatar Mar 27 '25 10:03 vihan85