fix: attempt to resolve notification indicator issue

This commit is contained in:
codytseng 2025-05-21 21:53:42 +08:00
parent 5c39413420
commit 2e4602e973
2 changed files with 12 additions and 3 deletions

View file

@ -135,6 +135,11 @@ export function NotificationProvider({ children }: { children: React.ReactNode }
const clearNewNotifications = async () => {
if (!pubkey) return
if (subCloserRef.current) {
subCloserRef.current.close()
subCloserRef.current = null
}
setNewNotificationIds(new Set())
await updateNotificationsSeenAt()
}