diff options
author | dan <dan.abramov@gmail.com> | 2024-08-08 19:19:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 19:19:58 +0100 |
commit | e782db33dcd415bf6ad122daedd3abd3aafabd64 (patch) | |
tree | 2c998dbc2dd9830df645c4d6107a211471fde348 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | c1af767fa62361407d0584a94bd206dbd92323bc (diff) | |
download | voidsky-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/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 29f17164f..8adbb17e2 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -75,7 +75,7 @@ export function PostThreadItem({ showParentReplyLine?: boolean hasPrecedingItem: boolean overrideBlur: boolean - onPostReply: () => void + onPostReply: (postUri: string | undefined) => void hideTopBorder?: boolean }) { const postShadowed = usePostShadow(post) @@ -169,7 +169,7 @@ let PostThreadItemLoaded = ({ showParentReplyLine?: boolean hasPrecedingItem: boolean overrideBlur: boolean - onPostReply: () => void + onPostReply: (postUri: string | undefined) => void hideTopBorder?: boolean }): React.ReactNode => { const pal = usePalette('default') |