This commit is contained in:
Hailey
2024-05-16 12:10:53 -07:00
parent a205c86b45
commit dc5c3070b3
+1 -6
View File
@@ -119,12 +119,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
// update & broadcast
setNumUnread('')
broadcast.postMessage({event: ''})
if (cacheRef.current.unreadCount >= 30) {
decrementBadgeCount(30)
} else {
decrementBadgeCount(cacheRef.current.unreadCount)
}
decrementBadgeCount(Math.min(cacheRef.current.unreadCount, 30))
},
async checkUnread({