about summary refs log tree commit diff
path: root/src/view/com/composer/Composer.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-22 15:46:49 -0500
committerGitHub <noreply@github.com>2023-03-22 15:46:49 -0500
commitf6f1fe2558cd00e4dcac9685a4209c79b224d3bb (patch)
tree9e906c76a0311dae6b93fb53bd24bf1a11feb13e /src/view/com/composer/Composer.tsx
parent449f9243f3e58f684826e7d5830fc23deaa5c901 (diff)
downloadvoidsky-f6f1fe2558cd00e4dcac9685a4209c79b224d3bb.tar.zst
Feed updates (Closes #344) (#356)
* 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/com/composer/Composer.tsx')
-rw-r--r--src/view/com/composer/Composer.tsx2
1 files changed, 1 insertions, 1 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`)