fix missing null-guard
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b5ed08eba2
commit
a390cecf92
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ export function bodyToHtml(content, highlights, opts={}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let formattedBody = content.formatted_body;
|
let formattedBody = content.formatted_body;
|
||||||
if (opts.stripReplyFallback) formattedBody = ReplyThread.stripHTMLReply(content.formatted_body);
|
if (opts.stripReplyFallback && formattedBody) formattedBody = ReplyThread.stripHTMLReply(formattedBody);
|
||||||
strippedBody = opts.stripReplyFallback ? ReplyThread.stripPlainReply(content.body) : content.body;
|
strippedBody = opts.stripReplyFallback ? ReplyThread.stripPlainReply(content.body) : content.body;
|
||||||
|
|
||||||
bodyHasEmoji = containsEmoji(isHtml ? formattedBody : content.body);
|
bodyHasEmoji = containsEmoji(isHtml ? formattedBody : content.body);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue