mirror of
https://github.com/tooot-app/app
synced 2025-01-27 16:59:31 +01:00
Merge branch 'release'
This commit is contained in:
commit
23bc9aa5f3
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -25,10 +25,9 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
java-version: '11'
|
||||
- name: -- Step 4 -- Use Expo action
|
||||
uses: expo/expo-github-action@v6
|
||||
uses: expo/expo-github-action@v7
|
||||
with:
|
||||
expo-version: 5.x
|
||||
username: ${{ secrets.EXPO_USERNAME }}
|
||||
expo-version: latest
|
||||
token: ${{ secrets.EXPO_TOKEN }}
|
||||
- name: -- Step 5 -- Install node dependencies
|
||||
run: yarn install
|
||||
|
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user