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

@ -73,7 +73,17 @@ export const Post = observer(function Post({uri}: {uri: string}) {
replyHref = `/profile/${urip.hostname}/post/${urip.rkey}`
}
const onPressReply = () => {
store.shell.openComposer({replyTo: {uri: item.uri, cid: item.cid}})
store.shell.openComposer({
replyTo: {
uri: item.uri,
cid: item.cid,
text: item.record.text as string,
author: {
handle: item.author.handle,
displayName: item.author.displayName,
},
},
})
}
const onPressToggleRepost = () => {
item