From 414b208100a36975d2fa238f4adfb33b20212122 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 20 Jun 2017 11:47:53 -0400 Subject: PLT-6885/PLT-6888 Fix custom emojis (#6694) * Fix custom emojis * Fix custom emoji reactions --- webapp/components/post_view/post_message_view/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/components/post_view/post_message_view') diff --git a/webapp/components/post_view/post_message_view/index.js b/webapp/components/post_view/post_message_view/index.js index cf457a508..84682eb89 100644 --- a/webapp/components/post_view/post_message_view/index.js +++ b/webapp/components/post_view/post_message_view/index.js @@ -2,7 +2,7 @@ // See License.txt for license information. import {connect} from 'react-redux'; -import {getCustomEmojisAsMap} from 'mattermost-redux/selectors/entities/emojis'; +import {getCustomEmojisByName} from 'mattermost-redux/selectors/entities/emojis'; import {getBool} from 'mattermost-redux/selectors/entities/preferences'; import {getCurrentUserMentionKeys, getUsersByUsername} from 'mattermost-redux/selectors/entities/users'; @@ -20,7 +20,7 @@ function makeMapStateToProps() { let oldCustomEmoji; return function mapStateToProps(state, ownProps) { - const newCustomEmoji = getCustomEmojisAsMap(state); + const newCustomEmoji = getCustomEmojisByName(state); if (newCustomEmoji !== oldCustomEmoji) { emojiMap = new EmojiMap(newCustomEmoji); } -- cgit v1.2.3-1-g7c22