nit
This commit is contained in:
@@ -119,12 +119,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||||||
// update & broadcast
|
// update & broadcast
|
||||||
setNumUnread('')
|
setNumUnread('')
|
||||||
broadcast.postMessage({event: ''})
|
broadcast.postMessage({event: ''})
|
||||||
|
decrementBadgeCount(Math.min(cacheRef.current.unreadCount, 30))
|
||||||
if (cacheRef.current.unreadCount >= 30) {
|
|
||||||
decrementBadgeCount(30)
|
|
||||||
} else {
|
|
||||||
decrementBadgeCount(cacheRef.current.unreadCount)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async checkUnread({
|
async checkUnread({
|
||||||
|
|||||||
Reference in New Issue
Block a user