-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update "jump to bottom" button visibility upon a change in timeline items #131
Comments
Hello, just got a chance to look at this. Also, is there a slack for this project? I'd love to join if there is one! |
Great, thanks for looking into this! It should be pretty quick/straightforward to add this logic into the handler for the
The "read" or "unread" state of a message is actually totally separate from this issue, and it's decently supported by the Matrix SDK itself. We already support retrieving and displaying the logged-in user's
Nope, Slack is expensive! 😅 Also, we can't be using Slack for a matrix project, right? haha We do have a matrix room where all public Robrix conversations can take place. It's linked at the top of the README: https://matrix.to/#/#robius-robrix:matrix.org |
Yep I think I have a few ideas to mess around with on that front
That makes perfect sense!
Haha yes that makes perfect sense. I'll join that then! |
Combine PR #206 tested together with sending read receipt by scroll |
Currently the visibility of the "jump to bottom" button is based solely on the scrolling actions emitted by the PortalList.
This works, but misses one key scenario in which the actual underlying contents of the timeline (its
items
Vector) is changed by an update received in the background task.For example, when a new message is received (and pushed onto the end of the timeline), but the user is not currently scrolled all the way down, the PortalList will not auto-tail (automatically track and scroll down to the last/latest/newest item). Thus, it isn't immediately obvious to the user that a new message has actually arrived.
To remedy this, we should (at the very least) update the visibility of the
jump_to_bottom_button
upon receiving aTimelineUpdate::NewItems()
update. That way, the button would be re-shown again any time new messages exist beyond the current viewport.Stretch goal: it'd be even nicer to display a UI element showing that unread messages are below the current viewport.
Element does this for both the upwards direction and the downwards direction. Here's an example of Element showing the count of unread messages beneath the current view:
And here's an example of Element's blue-green dot that is rendered as an ornament atop the "jump upwards to unread messages" button:
The text was updated successfully, but these errors were encountered: