From 977d6789da262a64290d680c7338bed16c04440b Mon Sep 17 00:00:00 2001 From: codytseng Date: Sat, 12 Apr 2025 17:21:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=92=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NotificationList/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NotificationList/index.tsx b/src/components/NotificationList/index.tsx index 92b05064..d81a5eff 100644 --- a/src/components/NotificationList/index.tsx +++ b/src/components/NotificationList/index.tsx @@ -22,7 +22,7 @@ const SHOW_COUNT = 30 const NotificationList = forwardRef((_, ref) => { const { t } = useTranslation() const { pubkey } = useNostr() - const { clearNewNotifications: updateReadNotificationTime } = useNotification() + const { clearNewNotifications } = useNotification() const { updateNoteStatsByEvents } = useNoteStats() const [notificationType, setNotificationType] = useState('all') const [lastReadTime, setLastReadTime] = useState(0) @@ -69,7 +69,7 @@ const NotificationList = forwardRef((_, ref) => { setNotifications([]) setShowCount(SHOW_COUNT) setLastReadTime(storage.getLastReadNotificationTime(pubkey)) - updateReadNotificationTime() + clearNewNotifications() const relayList = await client.fetchRelayList(pubkey) const { closer, timelineKey } = await client.subscribeTimeline(