From f740698dbe06816921d2a20eea876c9ca7b515ed Mon Sep 17 00:00:00 2001
From: David Meza <dmeza@users.noreply.github.com>
Date: Mon, 31 Jul 2017 07:24:13 -0500
Subject: PLT-6486 Add an `@username` button to the profile popover, that puts
 the username in the post when clicked (#6349)

* PLT-6486 Add an `@username` button to the profile popover, that puts the username in the post when clicked

* PLT-6486 Display `@username` mention on the right text area on center or RHS.

* Disable @mentions from profile popover on searches, mentions and pinned posts. Fix js errors.

* Control undefined post in SearchStore that causes an exception.
---
 webapp/components/create_comment.jsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'webapp/components/create_comment.jsx')

diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index a7edb6bc4..9f7592f3e 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -617,6 +617,8 @@ export default class CreateComment extends React.Component {
                                 emojiEnabled={window.mm_config.EnableEmojiPicker === 'true'}
                                 initialText=''
                                 channelId={this.props.channelId}
+                                isRHS={true}
+                                popoverMentionKeyClick={true}
                                 id='reply_textbox'
                                 ref='textbox'
                             />
-- 
cgit v1.2.3-1-g7c22

