From fbcf0d79d11e70c89995e62db97e5a20dc3b1475 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 23 Nov 2022 13:28:29 -0600
Subject: Show parent post in composer when replying (close #3)

---
 src/view/com/post-thread/PostThreadItem.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

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,
     })
   }
-- 
cgit 1.4.1

