about summary refs log tree commit diff
path: root/src/state/queries/notifications/unread.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-06-07 15:15:33 -0700
committerGitHub <noreply@github.com>2024-06-07 15:15:33 -0700
commit480a40862f329f98a37772f01fd774d0e6d89a9e (patch)
treead39ad65806cb51694d0a92feee8337c7f454aa4 /src/state/queries/notifications/unread.tsx
parentc58aedf050ea96ece27549b4c5a084611473db9d (diff)
downloadvoidsky-480a40862f329f98a37772f01fd774d0e6d89a9e.tar.zst
Use the proper logic on iOS to increment the badge (#4233)
Diffstat (limited to 'src/state/queries/notifications/unread.tsx')
-rw-r--r--src/state/queries/notifications/unread.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/queries/notifications/unread.tsx b/src/state/queries/notifications/unread.tsx
index 5f33cdf74..ffb8d03bc 100644
--- a/src/state/queries/notifications/unread.tsx
+++ b/src/state/queries/notifications/unread.tsx
@@ -11,7 +11,7 @@ import BroadcastChannel from '#/lib/broadcast'
 import {logger} from '#/logger'
 import {useMutedThreads} from '#/state/muted-threads'
 import {useAgent, useSession} from '#/state/session'
-import {decrementBadgeCount} from 'lib/notifications/notifications'
+import {resetBadgeCount} from 'lib/notifications/notifications'
 import {useModerationOpts} from '../../preferences/moderation-opts'
 import {truncateAndInvalidate} from '../util'
 import {RQKEY as RQKEY_NOTIFS} from './feed'
@@ -119,7 +119,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
         // update & broadcast
         setNumUnread('')
         broadcast.postMessage({event: ''})
-        decrementBadgeCount('reset')
+        resetBadgeCount()
       },
 
       async checkUnread({