diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 11:33:32 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 11:33:32 -0500 |
commit | 236c9080587ad9e63fa3330d2567640ea2f64fb4 (patch) | |
tree | a40bc4b31ab5594b8b07ebcf7b1e69c93842a6a5 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 0aaa406b179e366e6a527f052379184787440b42 (diff) | |
download | voidsky-236c9080587ad9e63fa3330d2567640ea2f64fb4.tar.zst |
Update the view after a post is created
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index d28017e44..ef1324bfb 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -20,9 +20,11 @@ const PARENT_REPLY_LINE_LENGTH = 8 export const PostThreadItem = observer(function PostThreadItem({ item, onPressShare, + onPostReply, }: { item: PostThreadViewPostModel onPressShare: (_uri: string) => void + onPostReply: () => void }) { const store = useStores() const record = item.record as unknown as PostType.Record @@ -47,7 +49,9 @@ export const PostThreadItem = observer(function PostThreadItem({ const repostsTitle = 'Reposts of this post' const onPressReply = () => { - store.shell.openModal(new ComposePostModel(item.uri)) + store.shell.openModal( + new ComposePostModel({replyTo: item.uri, onPost: onPostReply}), + ) } const onPressToggleRepost = () => { item |