unread badge never clears #49

Closed
opened 2026-04-19 08:25:34 +00:00 by zaelgohary · 1 comment
Member

services::mark_as_read existed and ChatPreviewData carried unread_count, but the archipelago never invoked it when the user opened a conversation, so the badge stayed pinned forever.

Fix: after fetch_messages succeeds in the chat-load effect, call mark_as_read(sid) and then locally patch the matching ChatPreviewData.unread_count to 0 — no full chat-list refetch needed.

`services::mark_as_read` existed and `ChatPreviewData` carried `unread_count`, but the archipelago never invoked it when the user opened a conversation, so the badge stayed pinned forever. **Fix**: after `fetch_messages` succeeds in the chat-load effect, call `mark_as_read(sid)` and then locally patch the matching `ChatPreviewData.unread_count` to 0 — no full chat-list refetch needed.
zaelgohary changed title from bug: unread badge never clears (mark_as_read is never called) to unread badge never clears 2026-04-19 08:32:19 +00:00
Author
Member

Fixed by #56.

Fixed by https://forge.ourworld.tf/lhumina_code/hero_archipelagos/pulls/56.
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
lhumina_code/hero_archipelagos#49
No description provided.