mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-01 11:03:18 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue