Skip to content

Commit

Permalink
Clear the app badge notif count on markallread
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Dec 27, 2023
1 parent b2b4ef8 commit 192c43b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/state/queries/notifications/unread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
// update & broadcast
setNumUnread('')
broadcast.postMessage({event: ''})
if (isNative) {
Notifications.setBadgeCountAsync(0)
}
},

async checkUnread({invalidate}: {invalidate?: boolean} = {}) {
Expand Down

0 comments on commit 192c43b

Please sign in to comment.