Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll position of MessagesList #105

Open
jasonatcobi opened this issue Oct 30, 2017 · 3 comments
Open

Scroll position of MessagesList #105

jasonatcobi opened this issue Oct 30, 2017 · 3 comments

Comments

@jasonatcobi
Copy link

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.

@anuragkp26
Copy link

please give any information about this

@anuragkp26
Copy link

When showing a MessageList, is it possible to scroll to the top of the first unread message?

@Hatzen
Copy link

Hatzen commented Aug 27, 2023

This can be archieved as stated here #211 (comment)
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants