diff --git a/package.json b/package.json index b6680f5e..c94a956b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tooot", - "version": "4.9.0", + "version": "4.9.1", "description": "tooot for Mastodon", "author": "xmflsct ", "license": "GPL-3.0-or-later", diff --git a/src/components/Timeline/index.tsx b/src/components/Timeline/index.tsx index e74b94f8..3be80136 100644 --- a/src/components/Timeline/index.tsx +++ b/src/components/Timeline/index.tsx @@ -265,7 +265,7 @@ const Timeline: React.FC = ({ initialNumToRender={3} maxToRenderPerBatch={2} onEndReached={() => !disableInfinity && !isFetchingNextPage && fetchNextPage()} - onEndReachedThreshold={0.75} + onEndReachedThreshold={0.8} ListFooterComponent={ } diff --git a/src/utils/push/updateExpoToken.ts b/src/utils/push/updateExpoToken.ts index fe2cbc67..85fc7204 100644 --- a/src/utils/push/updateExpoToken.ts +++ b/src/utils/push/updateExpoToken.ts @@ -11,20 +11,16 @@ export const updateExpoToken = async (): Promise => { await setChannels() } - if (expoToken?.length) { - return Promise.resolve(expoToken) - } else { - if (isDevelopment) { - setGlobalStorage('app.expo_token', 'ExponentPushToken[DEVELOPMENT_1]') - return Promise.resolve('ExponentPushToken[DEVELOPMENT_1]') - } - - return await Notifications.getExpoPushTokenAsync({ - experienceId: '@xmflsct/tooot', - applicationId: 'com.xmflsct.app.tooot' - }).then(({ data }) => { - setGlobalStorage('app.expo_token', data) - return data - }) + if (isDevelopment) { + setGlobalStorage('app.expo_token', 'ExponentPushToken[DEVELOPMENT_1]') + return 'ExponentPushToken[DEVELOPMENT_1]' } + + return await Notifications.getExpoPushTokenAsync({ + experienceId: '@xmflsct/tooot', + applicationId: 'com.xmflsct.app.tooot' + }).then(({ data }) => { + setGlobalStorage('app.expo_token', data) + return data + }) }