feat/message-grouping #30
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/message-grouping"
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?
Previously the read state only advanced on GET /dm/{peer} or GET /room/{id} (page load). If a user was already inside a DM and the peer sent a message over WebSocket, the message rendered into the open room but the viewer's last_read_message_id stayed at the old value. As a result the peer's "Seen HH:MM" caption never updated until the viewer left and re-entered the DM. The WS new-message handler now treats arrival in a foreground subscription as an implicit read: it calls set_last_read for the viewer and broadcasts a DmRead event so the author sees the live "Seen" update and any other tabs of the viewer clear their sidebar badge. Self-authored messages skip the marking since the sender's POST handler already mark-as-reads. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>