summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/post_message_view/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/post_message_view/index.js')
-rw-r--r--webapp/components/post_view/post_message_view/index.js4
1 files changed, 2 insertions, 2 deletions
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);
}