summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_post.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r--webapp/components/create_post.jsx9
1 files changed, 0 insertions, 9 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index e5ead4e84..f822f46f4 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -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) => {