fix: Handle rendering HTML only email in UI (#1987)

This commit is contained in:
Pranav Raj S
2021-03-27 13:29:04 +05:30
committed by GitHub
parent 8612f307b3
commit 8285f5df15
2 changed files with 25 additions and 5 deletions

View File

@@ -143,7 +143,9 @@ export default {
},
parsedLastMessage() {
return this.getPlainText(this.lastMessageInChat.content);
const { content_attributes: contentAttributes } = this.lastMessageInChat;
const { email: { subject } = {} } = contentAttributes || {};
return this.getPlainText(subject || this.lastMessageInChat.content);
},
chatInbox() {