From 5fa43530f6e8a794ac5d6adf765aa0e2cec7e5ee Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 13 Dec 2023 13:48:49 -0800 Subject: Revert change to how notifications are loaded on mobile --- src/view/screens/Notifications.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index 7ebacc9db..fceaa60c2 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 -- cgit 1.4.1