diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-12-27 08:47:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 08:47:45 -0800 |
commit | 6e001dbf1ce87f00f064a1a9f772c19185179f0e (patch) | |
tree | d9d3c4d525a017a54ff3dedc13006b6b32767630 /src/state/queries/notifications/unread.tsx | |
parent | 3b240db0c06b9cdc560fb0a1123405e28a0218ac (diff) | |
download | voidsky-6e001dbf1ce87f00f064a1a9f772c19185179f0e.tar.zst |
A couple notifications fixes (#2327)
* Clear the app badge notif count on markallread * Fix like notifications on custom feeds
Diffstat (limited to 'src/state/queries/notifications/unread.tsx')
-rw-r--r-- | src/state/queries/notifications/unread.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/queries/notifications/unread.tsx b/src/state/queries/notifications/unread.tsx index a189f20e4..abaabbf0e 100644 --- a/src/state/queries/notifications/unread.tsx +++ b/src/state/queries/notifications/unread.tsx @@ -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} = {}) { |