From d82e6849992a22bb6a4f41c3144ffa0cd249b2a2 Mon Sep 17 00:00:00 2001 From: Kit La Touche Date: Mon, 16 Feb 2026 22:44:06 -0500 Subject: Track unread conversation count in service worker --- ui/routes/(app)/c/[conversation]/+page.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/routes') diff --git a/ui/routes/(app)/c/[conversation]/+page.svelte b/ui/routes/(app)/c/[conversation]/+page.svelte index 5a832ee..a487e85 100644 --- a/ui/routes/(app)/c/[conversation]/+page.svelte +++ b/ui/routes/(app)/c/[conversation]/+page.svelte @@ -61,7 +61,9 @@ registration.active.postMessage({ type: 'CONVERSATION_READ', conversationId, - at, + // The service worker's idea of "has been read yet" is more + // constrained, so we just tell it "we read it now, at this moment". + at: new Date(), }); }); } -- cgit v1.2.3