summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_comment.jsx
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-16 16:59:05 +0800
committerGitHub <noreply@github.com>2017-08-16 16:59:05 +0800
commit5cd45c939406e5af84b0d9a6967683b77100303c (patch)
tree223b50a6de65533499bf9d4e49e31a4d08744ab0 /webapp/components/rhs_comment.jsx
parentbbf6c81a065d7d2c550b6a629cf31cc113b3713e (diff)
downloadchat-5cd45c939406e5af84b0d9a6967683b77100303c.tar.gz
chat-5cd45c939406e5af84b0d9a6967683b77100303c.tar.bz2
chat-5cd45c939406e5af84b0d9a6967683b77100303c.zip
add emoji to recently used section when reacting to a post in RHS (#7217)
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r--webapp/components/rhs_comment.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx
index 31afa7b6d..a4db89835 100644
--- a/webapp/components/rhs_comment.jsx
+++ b/webapp/components/rhs_comment.jsx
@@ -11,7 +11,7 @@ import FailedPostOptions from 'components/post_view/failed_post_options';
import DotMenu from 'components/dot_menu';
import EmojiPickerOverlay from 'components/emoji_picker/emoji_picker_overlay.jsx';
-import {addReaction} from 'actions/post_actions.jsx';
+import {addReaction, emitEmojiPosted} from 'actions/post_actions.jsx';
import TeamStore from 'stores/team_store.jsx';
@@ -166,6 +166,7 @@ export default class RhsComment extends React.Component {
this.setState({showEmojiPicker: false});
const emojiName = emoji.name || emoji.aliases[0];
addReaction(this.props.post.channel_id, this.props.post.id, emojiName);
+ emitEmojiPosted(emojiName);
this.handleDropdownOpened(false);
}