diff --git a/package.json b/package.json index 209e3464..4f4b11fb 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "native": "220508", "major": 4, "minor": 0, - "patch": 4, + "patch": 5, "expo": "45.0.0" }, "description": "tooot app for Mastodon", diff --git a/src/utils/push/useConnect.ts b/src/utils/push/useConnect.ts index 9b6453dd..e89b8610 100644 --- a/src/utils/push/useConnect.ts +++ b/src/utils/push/useConnect.ts @@ -78,7 +78,6 @@ const pushUseConnect = ({ t, instances }: Params) => { useEffect(() => { const appStateListener = AppState.addEventListener('change', state => { - console.log('changing state to', state) if (expoToken && pushEnabled.length && state === 'active') { Notifications.getBadgeCountAsync().then(count => { if (count > 0) { @@ -96,6 +95,7 @@ const pushUseConnect = ({ t, instances }: Params) => { return useEffect(() => { if (expoToken && pushEnabled.length) { + Notifications.setBadgeCountAsync(0) connect() } }, [expoToken, pushEnabled.length])