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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;