diff options
Diffstat (limited to 'webapp/components/post_view/post_message_view')
-rw-r--r-- | webapp/components/post_view/post_message_view/post_message_view.jsx | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/webapp/components/post_view/post_message_view/post_message_view.jsx b/webapp/components/post_view/post_message_view/post_message_view.jsx index 1c6035df9..348748450 100644 --- a/webapp/components/post_view/post_message_view/post_message_view.jsx +++ b/webapp/components/post_view/post_message_view/post_message_view.jsx @@ -66,12 +66,24 @@ export default class PostMessageView extends React.PureComponent { /** * Set to render post body compactly */ - compactDisplay: PropTypes.bool + compactDisplay: PropTypes.bool, + + /** + * Flags if the post_message_view is for the RHS (Reply). + */ + isRHS: PropTypes.bool, + + /** + * Flags if the post_message_view is for the RHS (Reply). + */ + hasMention: PropTypes.bool }; static defaultProps = { options: {}, - mentionKeys: [] + mentionKeys: [], + isRHS: false, + hasMention: false }; renderDeletedPost() { @@ -116,7 +128,13 @@ export default class PostMessageView extends React.PureComponent { processNode: (node) => { const mentionName = node.attribs[attrib]; - return <AtMention mentionName={mentionName}/>; + return ( + <AtMention + mentionName={mentionName} + isRHS={this.props.isRHS} + hasMention={this.props.hasMention} + /> + ); } }, { |