fix: Use reply content if available (#2025)
* fix: Use text_content reply if available * Use reply instead of full message from html_content
This commit is contained in:
parent
d5215fea93
commit
ef2611164d
1 changed files with 5 additions and 3 deletions
|
@ -109,12 +109,14 @@ export default {
|
|||
);
|
||||
|
||||
const {
|
||||
email: { html_content: { full: fullHTMLContent } = {} } = {},
|
||||
email: {
|
||||
html_content: { full: fullHTMLContent, reply: replyHTMLContent } = {},
|
||||
} = {},
|
||||
} = this.contentAttributes;
|
||||
|
||||
if (fullHTMLContent && this.isIncoming) {
|
||||
if ((replyHTMLContent || fullHTMLContent) && this.isIncoming) {
|
||||
let parsedContent = new DOMParser().parseFromString(
|
||||
fullHTMLContent || '',
|
||||
replyHTMLContent || fullHTMLContent || '',
|
||||
'text/html'
|
||||
);
|
||||
if (!parsedContent.getElementsByTagName('parsererror').length) {
|
||||
|
|
Loading…
Reference in a new issue