Mark posts read when scrolled past #180
Labels
No labels
area/ci
area/desktop
area/packaging
area/protocol
area/reading
area/ui
area/web
area/writing
kind/bug
kind/feature
kind/infra
kind/request
needs/user
parked
perf
security
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
littlefox/neokom#180
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User (D-052, point 5): "Like a normal chat, app I want the posts that I have scrolled past be marked as read. Now it is confusing to be returned to a post I just read by hitting space."
Plan: a post counts as read once it has been on screen (fully, or scrolled past) — the shown post and the reply cards under it alike. "Läs nästa" then never returns to something you've already seen. Marks go to the server, so other clients agree.
Done in #198 (main run #335 green). An unread reply card counts as read once its end has been on screen for a second, or once it has been on screen and is scrolled past; it's marked read on the server, so space skips it. Not while the page is in the background or the reading column is hidden; cards never on screen stay unread; seen cards keep their full look until reading moves on. Verified with e2e/tests/seen.spec.ts (cards seen become read after a reload, the last reply never shown stays unread; a reply scrolled past after being shown is read) on desktop, Android and iPhone; full e2e 277 passed.