mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
allow BigEmoji calc to ignore replies fallback if enabled
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9c2e3e25f0
commit
2854f2b6c8
@ -468,7 +468,7 @@ export function bodyToHtml(content, highlights, opts={}) {
|
||||
let emojiBody = false;
|
||||
if (!opts.disableBigEmoji && bodyHasEmoji) {
|
||||
EMOJI_REGEX.lastIndex = 0;
|
||||
const contentBodyTrimmed = content.body !== undefined ? content.body.trim() : '';
|
||||
const contentBodyTrimmed = strippedBody !== undefined ? strippedBody.trim() : '';
|
||||
const match = EMOJI_REGEX.exec(contentBodyTrimmed);
|
||||
emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user