From 5fa43530f6e8a794ac5d6adf765aa0e2cec7e5ee Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 13 Dec 2023 13:48:49 -0800 Subject: [PATCH] Revert change to how notifications are loaded on mobile --- app.config.js | 2 +- src/view/screens/Notifications.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.config.js b/app.config.js index e5ec435aba..096756b084 100644 --- a/app.config.js +++ b/app.config.js @@ -9,7 +9,7 @@ module.exports = function () { /** * iOS build number. Must be incremented for each TestFlight version. */ - const IOS_BUILD_NUMBER = '1' + const IOS_BUILD_NUMBER = '2' /** * Android build number. Must be incremented for each release. diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index 7ebacc9db1..fceaa60c29 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -67,8 +67,8 @@ export function NotificationsScreen({}: Props) { const onFocusCheckLatest = React.useCallback(() => { // on focus, check for latest, but only invalidate if the user // isnt scrolled down to avoid moving content underneath them - unreadApi.checkUnread({invalidate: !isScrolledDown && isDesktop}) - }, [unreadApi, isScrolledDown, isDesktop]) + unreadApi.checkUnread({invalidate: !isScrolledDown}) + }, [unreadApi, isScrolledDown]) checkLatestRef.current = onFocusCheckLatest // on-visible setup