From 73527800a1363eae4ee45e99b7afa0e0b0f61676 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 5 Jul 2017 17:02:49 -0400 Subject: Properly store recently used emoji when reacting (#6854) --- webapp/components/post_view/post_info/post_info.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webapp/components') diff --git a/webapp/components/post_view/post_info/post_info.jsx b/webapp/components/post_view/post_info/post_info.jsx index 36e0ea431..f2c2423f6 100644 --- a/webapp/components/post_view/post_info/post_info.jsx +++ b/webapp/components/post_view/post_info/post_info.jsx @@ -9,6 +9,7 @@ import DotMenu from 'components/dot_menu'; import * as Utils from 'utils/utils.jsx'; import * as PostUtils from 'utils/post_utils.jsx'; +import {emitEmojiPosted} from 'actions/post_actions.jsx'; import Constants from 'utils/constants.jsx'; import React from 'react'; @@ -119,6 +120,7 @@ export default class PostInfo extends React.PureComponent { this.setState({showEmojiPicker: false, reactionPickerOffset: pickerOffset}); const emojiName = emoji.name || emoji.aliases[0]; this.props.actions.addReaction(this.props.post.id, emojiName); + emitEmojiPosted(emojiName); } getDotMenu = () => { -- cgit v1.2.3-1-g7c22