diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-05 15:35:01 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-05 12:35:01 -0700 |
commit | ed3162a59d522981cd6b63e578d31e0a96b5d2ff (patch) | |
tree | 3e70807996077605fa45677efced738f71923db6 /webapp/components/rhs_root_post.jsx | |
parent | 511be7714b1939892f687bbdb46f0598916adf23 (diff) | |
download | chat-ed3162a59d522981cd6b63e578d31e0a96b5d2ff.tar.gz chat-ed3162a59d522981cd6b63e578d31e0a96b5d2ff.tar.bz2 chat-ed3162a59d522981cd6b63e578d31e0a96b5d2ff.zip |
Moved twemoji parsing so that it doesn't occur inside of code blocks (#2896)
Diffstat (limited to 'webapp/components/rhs_root_post.jsx')
-rw-r--r-- | webapp/components/rhs_root_post.jsx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index d56306d28..c771674a6 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -1,14 +1,12 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -import ReactDOM from 'react-dom'; import ChannelStore from 'stores/channel_store.jsx'; import UserProfile from './user_profile.jsx'; import UserStore from 'stores/user_store.jsx'; import * as TextFormatting from 'utils/text_formatting.jsx'; import * as Utils from 'utils/utils.jsx'; import FileAttachmentList from './file_attachment_list.jsx'; -import twemoji from 'twemoji'; import PostBodyAdditionalContent from './post_body_additional_content.jsx'; import * as GlobalActions from 'action_creators/global_actions.jsx'; @@ -22,25 +20,14 @@ export default class RhsRootPost extends React.Component { constructor(props) { super(props); - this.parseEmojis = this.parseEmojis.bind(this); this.handlePermalink = this.handlePermalink.bind(this); this.state = {}; } - parseEmojis() { - twemoji.parse(ReactDOM.findDOMNode(this), { - className: 'emoticon', - base: '', - folder: Constants.EMOJI_PATH - }); - } handlePermalink(e) { e.preventDefault(); GlobalActions.showGetPostLinkModal(this.props.post); } - componentDidMount() { - this.parseEmojis(); - } shouldComponentUpdate(nextProps) { if (!Utils.areObjectsEqual(nextProps.post, this.props.post)) { return true; @@ -48,9 +35,6 @@ export default class RhsRootPost extends React.Component { return false; } - componentDidUpdate() { - this.parseEmojis(); - } render() { const post = this.props.post; const user = this.props.user; |