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

bug: channel state does not get reset when switching between the channels

Open MartinCupela opened this issue 1 year ago • 0 comments

Describe the bug

The channel message state is not reset after performing the below steps.

To Reproduce

Steps to reproduce the behavior:

  1. Jump to a distant message set in channel A
  2. Click on a channel B preview to switch channels
  3. Click on a channel A preview
  4. 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

MartinCupela avatar Aug 12 '22 13:08 MartinCupela