summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-05 17:02:49 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2017-07-06 05:02:49 +0800
commit73527800a1363eae4ee45e99b7afa0e0b0f61676 (patch)
tree010c41c2aa921a2582c9abc81da636ff7ff6de19 /webapp
parent29b22f13c59de76f1e0485e707aa5a61034798d4 (diff)
downloadchat-73527800a1363eae4ee45e99b7afa0e0b0f61676.tar.gz
chat-73527800a1363eae4ee45e99b7afa0e0b0f61676.tar.bz2
chat-73527800a1363eae4ee45e99b7afa0e0b0f61676.zip
Properly store recently used emoji when reacting (#6854)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/post_view/post_info/post_info.jsx2
1 files changed, 2 insertions, 0 deletions
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 = () => {