Text chat follow-up: "Mark as read" does not scroll a scrolled-up list to its end #418

Open
opened 2026-11-13 05:29:26 +00:00 by charles · 0 comments
Owner

Found while building Text chat 33 (#283).

The original new-messages bar "Mark as read" (ChannelMessages.tsx onScrollToPresentAndAck) acks the channel and scrolls to the present: jumpToLiveEdge when the newest messages are not loaded, else scrollManager.scrollSetToBottom. The native bar sends JumpToPresent (when away from the present) and MarkRead, but when the newest messages are loaded and the list is merely scrolled up, the list stays where it is: MessageList has no way for the view to ask it to scroll to its end (its scroll position lives in the widget tree).

To do: give widgets::message_list::MessageList a request to go to its end (e.g. a generation counter the view bumps, or an iced Operation), and send it from messages::Message::MarkRead.

Found while building Text chat 33 (#283). The original new-messages bar "Mark as read" (`ChannelMessages.tsx` `onScrollToPresentAndAck`) acks the channel and scrolls to the present: `jumpToLiveEdge` when the newest messages are not loaded, else `scrollManager.scrollSetToBottom`. The native bar sends `JumpToPresent` (when away from the present) and `MarkRead`, but when the newest messages are loaded and the list is merely scrolled up, the list stays where it is: `MessageList` has no way for the view to ask it to scroll to its end (its scroll position lives in the widget tree). To do: give `widgets::message_list::MessageList` a request to go to its end (e.g. a generation counter the view bumps, or an iced `Operation`), and send it from `messages::Message::MarkRead`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#418
No description provided.