In VirtualizedMessageListjumpToFirstUnreadMessage from useChannelActionContext doesn't work as expected. Read object from useChannelStateContext is not updating properly, unread_messages property still increases and never clears.
Should scroll to last message, read object should properly update.
Package version
stream-chat-react: 8.33.0,
stream-chat-css: 11.18.1
stream-chat-js: -
Desktop (please complete the following information):
OS: iOS
Browser: Brave
Version: 1.67.134 Chromium
Additional context
Also, is it any chance to change scroll position instead of scrolling to the middle? I want to scroll to and show last user unread message on top of the chat.
Hey @pieralukasz , could you please provide us with a minimum repro in a forked sandbox, so that we can better understand the level of customization? Thank you
In
VirtualizedMessageList
jumpToFirstUnreadMessage
from useChannelActionContext doesn't work as expected.Read
object fromuseChannelStateContext
is not updating properly,unread_messages
property still increases and never clears.Also value
first_unread_message_id
is undefined all the time, even when "New Message!" button is visible.doc: https://getstream.io/chat/docs/sdk/react/guides/channel_read_state/
Expected behavior
Should scroll to last message, read object should properly update.
Package version
Desktop (please complete the following information):
Additional context
Also, is it any chance to change scroll position instead of scrolling to the middle? I want to scroll to and show last user unread message on top of the chat.
Greetings :)