diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-22 15:46:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 15:46:49 -0500 |
commit | f6f1fe2558cd00e4dcac9685a4209c79b224d3bb (patch) | |
tree | 9e906c76a0311dae6b93fb53bd24bf1a11feb13e /src/view/screens/Notifications.tsx | |
parent | 449f9243f3e58f684826e7d5830fc23deaa5c901 (diff) | |
download | voidsky-f6f1fe2558cd00e4dcac9685a4209c79b224d3bb.tar.zst |
* Rework feed polling to correctly detect when new content is available (close #344) * Tweak how the tuner works for consistency * Improve the feed-update behavior after posting * Load latest notifications when opening the tab
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r-- | src/view/screens/Notifications.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index b704f9c45..7da563843 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -74,7 +74,8 @@ export const NotificationsScreen = withAuthRequired( React.useCallback(() => { store.log.debug('NotificationsScreen: Updating feed') const softResetSub = store.onScreenSoftReset(scrollToTop) - store.me.notifications.update() + store.me.notifications.loadUnreadCount() + store.me.notifications.loadLatest() screen('Notifications') return () => { |