1
0
mirror of https://github.com/tooot-app/app synced 2025-02-18 12:50:46 +01:00

Force clearing push count

This commit is contained in:
Zhiyuan Zheng 2022-06-21 23:10:40 +02:00
parent 869524eb84
commit ca810065f8

View File

@ -94,8 +94,8 @@ const pushUseConnect = ({ t, instances }: Params) => {
}, [expoToken, pushEnabled.length])
return useEffect(() => {
Notifications.setBadgeCountAsync(0)
if (expoToken && pushEnabled.length) {
Notifications.setBadgeCountAsync(0)
connect()
}
}, [expoToken, pushEnabled.length])