From a2fca2edb8b3146f812a373caf18618cee107974 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Fri, 16 Jul 2021 19:56:54 +0530 Subject: [PATCH] fix: Fix HTML only email rendering (#2644) --- .../components/widgets/conversation/Message.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/Message.vue b/app/javascript/dashboard/components/widgets/conversation/Message.vue index 75460f289..58ef6e216 100644 --- a/app/javascript/dashboard/components/widgets/conversation/Message.vue +++ b/app/javascript/dashboard/components/widgets/conversation/Message.vue @@ -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;