This commit is contained in:
mgabdev
2020-05-14 23:36:10 -04:00
parent a1977ba450
commit 805012ab72
13 changed files with 27 additions and 16 deletions

View File

@@ -14,6 +14,7 @@ import {
deleteStatus,
editStatus,
} from '../../actions/statuses';
import { quoteCompose } from '../../actions/compose'
import {
fetchGroupRelationships,
createRemovedAccount,
@@ -257,6 +258,10 @@ class StatusOptionsPopover extends ImmutablePureComponent {
this.props.onRepost(this.props.status, e)
}
handleQuoteClick = (e) => {
this.props.onQuote(this.props.status, this.context.router)
}
render() {
const {
status,
@@ -293,7 +298,7 @@ class StatusOptionsPopover extends ImmutablePureComponent {
icon: 'pencil',
hideArrow: true,
title: intl.formatMessage(messages.repostWithComment),
onClick: this.handleRepostClick,
onClick: this.handleQuoteClick,
})
}