mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Properly store recently used emoji when reacting (#6854)
This commit is contained in:
committed by
Saturnino Abril
parent
29b22f13c5
commit
73527800a1
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user