fix: Fix HTML only email rendering (#2644)

This commit is contained in:
Pranav Raj S
2021-07-16 19:56:54 +05:30
committed by GitHub
parent 9de36f2b9e
commit a2fca2edb8

View File

@@ -134,11 +134,17 @@ export default {
const {
email: {
html_content: { full: fullHTMLContent, reply: replyHTMLContent } = {},
text_content: { full: fullTextContent, reply: replyTextContent } = {},
} = {},
} = this.contentAttributes;
if ((replyHTMLContent || fullHTMLContent) && this.isIncoming) {
let contentToBeParsed = replyHTMLContent || fullHTMLContent || '';
let contentToBeParsed =
replyHTMLContent ||
replyTextContent ||
fullHTMLContent ||
fullTextContent ||
'';
if (contentToBeParsed && this.isIncoming) {
const parsedContent = this.stripStyleCharacters(contentToBeParsed);
if (parsedContent) {
return parsedContent;