ChatKit
ChatKit copied to clipboard
Scroll position of MessagesList
Hi all
When showing a MessageList, is it possible to scroll to the top of the first unread message? I've noticed that when the message is long enough to take up more than the screen, the scroll position seems to be set to the bottom of the message.
I'm not sure if this is a bug or a missing setting or working as intended or that I've made a mistake in implementation.
I have a webview inside the message view, not sure if you think that is relevant or not.
please give any information about this
When showing a MessageList, is it possible to scroll to the top of the first unread message?
This can be archieved as stated here https://github.com/stfalcon-studio/ChatKit/issues/211#issuecomment-428955733
The model does not store any information about a read status, so you have to handle it on your own.
Then filter MessageListAdapater.items for the position of the first unread message and use recyclerviews messageList.scrollToPosition