about summary refs log tree commit diff
path: root/src/view/com/composer/Composer.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-08-08 19:19:58 +0100
committerGitHub <noreply@github.com>2024-08-08 19:19:58 +0100
commite782db33dcd415bf6ad122daedd3abd3aafabd64 (patch)
tree2c998dbc2dd9830df645c4d6107a211471fde348 /src/view/com/composer/Composer.tsx
parentc1af767fa62361407d0584a94bd206dbd92323bc (diff)
downloadvoidsky-e782db33dcd415bf6ad122daedd3abd3aafabd64.tar.zst
Show just-posted replies above OP replies (#4901)
* Unify onPostReply handler

* Show just-posted replies above OP replies

* Only do this for the highlighted post or thread mode

It's confusing to have your post displace OP thread or other people's leaf posts.
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 08ce4441f..dba37d82b 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -392,7 +392,7 @@ export const ComposePost = observer(function ComposePost({
       emitPostCreated()
     }
     setLangPrefs.savePostLanguageToHistory()
-    onPost?.()
+    onPost?.(postUri)
     onClose()
     Toast.show(
       replyTo