diff options
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/Home.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/Notifications.tsx | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index e10e801e4..572eea927 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -166,7 +166,7 @@ export const ComposePost = observer(function ComposePost({ setIsProcessing(false) return } - store.me.mainFeed.loadLatest() + store.me.mainFeed.checkForLatest({autoPrepend: true}) onPost?.() hackfixOnClose() Toast.show(`Your ${replyTo ? 'reply' : 'post'} has been published`) diff --git a/src/view/screens/Home.tsx b/src/view/screens/Home.tsx index 505f9e723..4f2bc4c15 100644 --- a/src/view/screens/Home.tsx +++ b/src/view/screens/Home.tsx @@ -158,7 +158,7 @@ const FeedPage = observer( }, [feed]) const onPressLoadLatest = React.useCallback(() => { - feed.refresh() + feed.resetToLatest() scrollToTop() }, [feed, scrollToTop]) 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 () => { |