fix: Fix HTML only email rendering (#2644)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user