about summary refs log tree commit diff
path: root/src/state/queries/notifications
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-17 16:05:32 -0700
committerGitHub <noreply@github.com>2024-05-17 16:05:32 -0700
commitd2c81c9d3d6aebae9c73a7567875e0165cfb1f08 (patch)
tree428f283a80530d71603d2cad87e62d85d20d2bf7 /src/state/queries/notifications
parent49314e2d1f20d7471f1d05ce2b118bd030c44aa2 (diff)
downloadvoidsky-d2c81c9d3d6aebae9c73a7567875e0165cfb1f08.tar.zst
Disable badge incrementing for DMs (#4088)
* disable badge increments for dms

* revert decrementing in js for dms

* reset badge on read notifications

* remove some other code

* prevent duplicate notification events
Diffstat (limited to 'src/state/queries/notifications')
-rw-r--r--src/state/queries/notifications/unread.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/queries/notifications/unread.tsx b/src/state/queries/notifications/unread.tsx
index 9d35ee19f..acc68c360 100644
--- a/src/state/queries/notifications/unread.tsx
+++ b/src/state/queries/notifications/unread.tsx
@@ -119,7 +119,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
         // update & broadcast
         setNumUnread('')
         broadcast.postMessage({event: ''})
-        decrementBadgeCount(Math.min(cacheRef.current.unreadCount, 30))
+        decrementBadgeCount('reset')
       },
 
       async checkUnread({