stream-chat-react
stream-chat-react copied to clipboard
bug: channel state does not get reset when switching between the channels
Describe the bug
The channel message state is not reset after performing the below steps.
To Reproduce
Steps to reproduce the behavior:
- Jump to a distant message set in channel A
- Click on a channel B preview to switch channels
- Click on a channel A preview
- The message list is scrolled to the bottom but the latest message set is not the actual latest message set but rather the latest jumped-to message set
Tested both for MessageList as well as VirtualizedMessageList.
Expected behavior
When switching back to channel A, I should see the latest received messages in that channel, not the last jumped-to message set.
Screenshots
channel_state_does_not_refresh_on_channel_change.webm
Package version
- stream-chat-react: v9.4.1
- stream-chat-css: v2.10.1
- stream-chat-js: v6.7.3