fix: Fix HTML only email rendering (#2644)
This commit is contained in:
parent
9de36f2b9e
commit
a2fca2edb8
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue