diff --git a/packages/internal/store/src/unread/store.ts b/packages/internal/store/src/unread/store.ts index d5fb46c15..a029d9dc0 100644 --- a/packages/internal/store/src/unread/store.ts +++ b/packages/internal/store/src/unread/store.ts @@ -186,6 +186,7 @@ class UnreadSyncService { if (!entry || entry.read === read || (!entry.feedId && !entry.inboxHandle)) return const id: FeedIdOrInboxHandle = entry.inboxHandle || entry.feedId || "" + const isInbox = !!entry.inboxHandle const tx = createTransaction() tx.store(() => { @@ -200,11 +201,11 @@ class UnreadSyncService { tx.request(async () => { if (read) { await apiClient().reads.$post({ - json: { entryIds: [entryId] }, + json: { entryIds: [entryId], isInbox }, }) } else { await apiClient().reads.$delete({ - json: { entryId }, + json: { entryId, isInbox }, }) } })