Nothing emits UserAction::MarkRead: a channel stays unread after it is opened and read #60

Closed
opened 2026-11-11 11:56:33 +00:00 by charles · 1 comment
Owner

fluxer-core handles UserAction::MarkRead(channel) (Task 10: Api Ack + local update), but no view emits it, and no plan task says which one should (Task 18 lists SelectGuild/SelectChannel/SidebarResized/ToggleMembers/OpenSettings, Task 20 lists SendDraft/DraftChanged/RetrySend/ScrolledToOldest).

Steps to reproduce (seen on task/20-ui-message-list-composer at a1c70f1, which has the message view):

  1. cargo run -p fluxer -- --devserver
  2. Click the guild "Forked", then #general (it has an unread mention badge "1").
  3. The messages show, the list is at its end, the window is focused.

Expected: like the web app, the channel is acked once its newest message is on screen in a focused window; the badge and the unread pill go away.

Actual: the badge on the guild and on #general stays (see docs/screenshots/main-messages.png on that branch).

Where it could go: the message list knows when it is at its end (widgets::message_list, stick_bottom), and the store knows window_focused; the list could publish an "at the end" message that screens::main::messages::update turns into MarkRead when the channel is unread. Needs a decision on the exact rule (web app: fork:fluxer_app/src/features/read_state), so it was not done inside Task 20.

`fluxer-core` handles `UserAction::MarkRead(channel)` (Task 10: `Api Ack` + local update), but no view emits it, and no plan task says which one should (Task 18 lists `SelectGuild/SelectChannel/SidebarResized/ToggleMembers/OpenSettings`, Task 20 lists `SendDraft/DraftChanged/RetrySend/ScrolledToOldest`). **Steps to reproduce** (seen on `task/20-ui-message-list-composer` at a1c70f1, which has the message view): 1. `cargo run -p fluxer -- --devserver` 2. Click the guild "Forked", then `#general` (it has an unread mention badge "1"). 3. The messages show, the list is at its end, the window is focused. **Expected:** like the web app, the channel is acked once its newest message is on screen in a focused window; the badge and the unread pill go away. **Actual:** the badge on the guild and on `#general` stays (see `docs/screenshots/main-messages.png` on that branch). **Where it could go:** the message list knows when it is at its end (`widgets::message_list`, `stick_bottom`), and the store knows `window_focused`; the list could publish an "at the end" message that `screens::main::messages::update` turns into `MarkRead` when the channel is unread. Needs a decision on the exact rule (web app: `fork:fluxer_app/src/features/read_state`), so it was not done inside Task 20.
Author
Owner

Done on textchat (c24495a): fluxer-core/src/read_state.rs header: follow_view auto-acks the channel being read (#60); fluxer-ui/.../messages.rs:20,428,1044 sends ViewportAtBottom

Closed during the 2026-11-14 issue triage.

🤖 Generated with Claude Code

Done on `textchat` (c24495a): `fluxer-core/src/read_state.rs` header: `follow_view` auto-acks the channel being read (#60); `fluxer-ui/.../messages.rs:20,428,1044` sends `ViewportAtBottom` Closed during the 2026-11-14 issue triage. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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#60
No description provided.