Show parent post in composer when replying (close #3)

This commit is contained in:
Paul Frazee 2022-11-23 13:28:29 -06:00
parent 0840c3f8f7
commit fbcf0d79d1
5 changed files with 66 additions and 5 deletions

View file

@ -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,
})
}