diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-23 13:28:29 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-23 13:28:29 -0600 |
commit | fbcf0d79d11e70c89995e62db97e5a20dc3b1475 (patch) | |
tree | 72ee119e23c6c94558b2816a81477989a845d42f /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 0840c3f8f7ea491ec9c7f4ff11a7becf21435dd0 (diff) | |
download | voidsky-fbcf0d79d11e70c89995e62db97e5a20dc3b1475.tar.zst |
Show parent post in composer when replying (close #3)
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index adddd3f04..bb90afe19 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -50,7 +50,15 @@ export const PostThreadItem = observer(function PostThreadItem({ const onPressReply = () => { store.shell.openComposer({ - replyTo: {uri: item.uri, cid: item.cid}, + replyTo: { + uri: item.uri, + cid: item.cid, + text: item.record.text as string, + author: { + handle: item.author.handle, + displayName: item.author.displayName, + }, + }, onPost: onPostReply, }) } |