Commit 7742a53a authored by Saturnino Abril's avatar Saturnino Abril Committed by Harrison Healey

fix text rendering of non-existent emoji when post metadata is enabled (#2143)

parent 1607926c
......@@ -12,6 +12,7 @@ import {getEmojiMap} from 'selectors/emojis';
import PostEmoji from './post_emoji.jsx';
function mapStateToProps(state, ownProps) {
const config = getConfig(state);
const emojiMap = getEmojiMap(state);
const emoji = emojiMap.get(ownProps.name);
......@@ -21,7 +22,8 @@ function mapStateToProps(state, ownProps) {
imageUrl = getEmojiImageUrl(emoji);
} else {
displayTextOnly = state.entities.emojis.nonExistentEmoji.has(ownProps.name) ||
getConfig(state).EnableCustomEmoji !== 'true' ||
config.EnableCustomEmoji !== 'true' ||
config.ExperimentalEnablePostMetadata === 'true' ||
getCurrentUserId(state) === '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment