diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-08-04 14:03:41 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-08-04 11:03:41 -0700 |
commit | 399865923658319d6d12a7719bc3b5554218bbad (patch) | |
tree | 4e1d3d8dcd196a33b8b9daf03c1dc659c1025384 /webapp/components/create_post.jsx | |
parent | 2c8a5ffd971f00648e7bc5f48993fc187f3179f2 (diff) | |
download | chat-399865923658319d6d12a7719bc3b5554218bbad.tar.gz chat-399865923658319d6d12a7719bc3b5554218bbad.tar.bz2 chat-399865923658319d6d12a7719bc3b5554218bbad.zip |
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
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r-- | webapp/components/create_post.jsx | 9 |
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) => { |