stream-chat-react
stream-chat-react copied to clipboard
reply_count from Thread did not remove deleted message when flag hideDeletedMessage is used
Describe the bug
On a ThreadList (message list ...), it is possible to provide props for hiding the delete message (https://getstream.io/chat/docs/sdk/react/components/core-components/virtualized_list/#hidedeletedmessages).
When we enabled this feature then the reply_count counter is still returning the number of replies and continue to count deleted messages.
To Reproduce
- Configure the <Thread /> component for showing the deleted messages
- Create 2 messages in the <Thread />
- Now delete a message in the Thread -> a bubble indicates the message is deleted and the number of replies = 2
run the app again now with hideDeletedMessages=true on the <Thread /> component
- Configure the same <Thread /> (hideDeletedMessages=true) for hiding the delete message.
- Go back in the Thread (the bubble of the deleted messages disappeared) BUT the number of replies is still 2.
We expect to see only one reply because all deleted messages are hiding
Important: The MessageList shows as well the number of reply_count and it is incorrect on the message list as well.
Expected behavior
When the hideDeletedMessages is true then we expect reply_count to avoid counting deleted messages
Screenshots
If applicable, add screenshots to help explain your problem.
Package version
- stream-chat-react: v10.7.2
- stream-chat-css: N/A
- stream-chat-js: N/A
Desktop (please complete the following information): All platforms, all browsers, all OS
Smartphone (please complete the following information):
- All devices
Additional context

