Show parent post in composer when replying (close #3)
This commit is contained in:
parent
0840c3f8f7
commit
fbcf0d79d1
5 changed files with 66 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue