close post control button after reacting to a post (#7110)

Этот коммит содержится в:
Saturnino Abril
2017-08-04 05:14:10 +08:00
коммит произвёл Harrison Healey
родитель 2dbe30cba3
Коммит dc884983e6
3 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@@ -125,6 +125,7 @@ export default class PostInfo extends React.PureComponent {
const emojiName = emoji.name || emoji.aliases[0];
this.props.actions.addReaction(this.props.post.id, emojiName);
emitEmojiPosted(emojiName);
this.props.handleDropdownOpened(false);
}
getDotMenu = () => {

Просмотреть файл

@@ -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);
this.handleDropdownOpened(false);
}
getClassName = (post, isSystemMessage) => {

Просмотреть файл

@@ -159,6 +159,7 @@ export default class RhsRootPost 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);
this.handleDropdownOpened(false);
}
getClassName = (post, isSystemMessage) => {