Properly store recently used emoji when reacting (#6854)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
29b22f13c5
Коммит
73527800a1
@@ -9,6 +9,7 @@ import DotMenu from 'components/dot_menu';
|
|||||||
|
|
||||||
import * as Utils from 'utils/utils.jsx';
|
import * as Utils from 'utils/utils.jsx';
|
||||||
import * as PostUtils from 'utils/post_utils.jsx';
|
import * as PostUtils from 'utils/post_utils.jsx';
|
||||||
|
import {emitEmojiPosted} from 'actions/post_actions.jsx';
|
||||||
import Constants from 'utils/constants.jsx';
|
import Constants from 'utils/constants.jsx';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -119,6 +120,7 @@ export default class PostInfo extends React.PureComponent {
|
|||||||
this.setState({showEmojiPicker: false, reactionPickerOffset: pickerOffset});
|
this.setState({showEmojiPicker: false, reactionPickerOffset: pickerOffset});
|
||||||
const emojiName = emoji.name || emoji.aliases[0];
|
const emojiName = emoji.name || emoji.aliases[0];
|
||||||
this.props.actions.addReaction(this.props.post.id, emojiName);
|
this.props.actions.addReaction(this.props.post.id, emojiName);
|
||||||
|
emitEmojiPosted(emojiName);
|
||||||
}
|
}
|
||||||
|
|
||||||
getDotMenu = () => {
|
getDotMenu = () => {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user