Merge pull request #2805 from matrix-org/t3chguy/disableBigEmoji_memote

Disable big emoji for m.emote messages as it looks weird
This commit is contained in:
Travis Ralston 2019-03-18 20:31:32 -06:00 committed by GitHub
commit 6f89c77bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ module.exports = React.createClass({
const stripReply = ReplyThread.getParentEventId(mxEvent);
let body = HtmlUtils.bodyToHtml(content, this.props.highlights, {
disableBigEmoji: !SettingsStore.getValue('TextualBody.enableBigEmoji'),
disableBigEmoji: content.msgtype === "m.emote" || !SettingsStore.getValue('TextualBody.enableBigEmoji'),
// Part of Replies fallback support
stripReplyFallback: stripReply,
});