fix: attempt to resolve notification indicator issue
This commit is contained in:
parent
5c39413420
commit
2e4602e973
2 changed files with 12 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue