Skip to content

Commit

Permalink
fix text rendering of non-existent emoji when post metadata is enabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
saturninoabril authored and hmhealey committed Dec 6, 2018
1 parent b1d2f1d commit c0a6494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/post_emoji/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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) === '';
}

Expand Down

0 comments on commit c0a6494

Please sign in to comment.