about summary refs log tree commit diff
path: root/src/view/screens/Notifications.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-12-13 13:48:49 -0800
committerPaul Frazee <pfrazee@gmail.com>2023-12-13 13:48:49 -0800
commit5fa43530f6e8a794ac5d6adf765aa0e2cec7e5ee (patch)
treea76021e2ff99a08b2d813f3582f4bae043ab4133 /src/view/screens/Notifications.tsx
parenta713f77e0357bfd9b7379de85e8a04ce104a9579 (diff)
downloadvoidsky-5fa43530f6e8a794ac5d6adf765aa0e2cec7e5ee.tar.zst
Revert change to how notifications are loaded on mobile
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r--src/view/screens/Notifications.tsx4
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