diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/view/screens/Notifications.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |