A couple notifications fixes (#2327)

* Clear the app badge notif count on markallread

* Fix like notifications on custom feeds
This commit is contained in:
Paul Frazee
2023-12-27 08:47:45 -08:00
committed by GitHub
parent 3b240db0c0
commit 6e001dbf1c
3 changed files with 22 additions and 3 deletions
@@ -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} = {}) {