From fb6b13693d883f1b58204e111c0df207b19d74bf Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 29 May 2024 22:05:12 +0800 Subject: [PATCH] feat: get unreads --- src/renderer/src/hono.ts | 16 ++++++++++++++++ src/renderer/src/queries/subscriptions.ts | 7 +++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/hono.ts b/src/renderer/src/hono.ts index 973a306d1..08d575759 100644 --- a/src/renderer/src/hono.ts +++ b/src/renderer/src/hono.ts @@ -43,6 +43,22 @@ declare const routes: hono_hono_base.HonoBase x.feedId === subscription.feedId)?.unread || 0 subscription.unread = unread categories.list[subscription.category].list.push(subscription) categories.list[subscription.category].unread += unread