about summary refs log tree commit diff
path: root/src/state/shell
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/state/shell
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/state/shell')
-rw-r--r--src/state/shell/composer.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/shell/composer.tsx b/src/state/shell/composer.tsx
index 5b4e50543..e28d6b4ac 100644
--- a/src/state/shell/composer.tsx
+++ b/src/state/shell/composer.tsx
@@ -1,10 +1,11 @@
 import React from 'react'
 import {
+  AppBskyActorDefs,
   AppBskyEmbedRecord,
   AppBskyRichtextFacet,
   ModerationDecision,
-  AppBskyActorDefs,
 } from '@atproto/api'
+
 import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
 
 export interface ComposerOptsPostRef {
@@ -31,7 +32,7 @@ export interface ComposerOptsQuote {
 }
 export interface ComposerOpts {
   replyTo?: ComposerOptsPostRef
-  onPost?: () => void
+  onPost?: (postUri: string | undefined) => void
   quote?: ComposerOptsQuote
   mention?: string // handle of user to mention
   openPicker?: (pos: DOMRect | undefined) => void