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 { const {
email: { email: {
html_content: { full: fullHTMLContent, reply: replyHTMLContent } = {}, html_content: { full: fullHTMLContent, reply: replyHTMLContent } = {},
text_content: { full: fullTextContent, reply: replyTextContent } = {},
} = {}, } = {},
} = this.contentAttributes; } = this.contentAttributes;
if ((replyHTMLContent || fullHTMLContent) && this.isIncoming) { let contentToBeParsed =
let contentToBeParsed = replyHTMLContent || fullHTMLContent || ''; replyHTMLContent ||
replyTextContent ||
fullHTMLContent ||
fullTextContent ||
'';
if (contentToBeParsed && this.isIncoming) {
const parsedContent = this.stripStyleCharacters(contentToBeParsed); const parsedContent = this.stripStyleCharacters(contentToBeParsed);
if (parsedContent) { if (parsedContent) {
return parsedContent; return parsedContent;