PLT-7267 Refactored tracking of recent emojis to hide deleted emojis (#7102)
* Fixed local ESLint error * PLT-7267 Refactored tracking of recent emojis to hide deleted emojis
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
2c8a5ffd97
Коммит
3998659236
@@ -41,7 +41,6 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export const REACTION_PATTERN = /^(\+|-):([^:\s]+):\s*$/;
|
||||
export const EMOJI_PATTERN = /:[A-Za-z-_0-9]*:/g;
|
||||
|
||||
export default class CreatePost extends React.Component {
|
||||
constructor(props) {
|
||||
@@ -268,14 +267,6 @@ export default class CreatePost extends React.Component {
|
||||
|
||||
GlobalActions.emitUserPostedEvent(post);
|
||||
|
||||
// parse message and emit emoji event
|
||||
const emojiResult = post.message.match(EMOJI_PATTERN);
|
||||
if (emojiResult) {
|
||||
emojiResult.forEach((emoji) => {
|
||||
PostActions.emitEmojiPosted(emoji);
|
||||
});
|
||||
}
|
||||
|
||||
PostActions.createPost(post, this.state.fileInfos,
|
||||
() => GlobalActions.postListScrollChange(true),
|
||||
(err) => {
|
||||
|
||||
Ссылка в новой задаче
Block a user