mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
fix: data.attachments is undefined for emails without body (#6403)
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
v-if="isBubble && !isMessageDeleted"
|
v-if="isBubble && !isMessageDeleted"
|
||||||
:is-open="showContextMenu"
|
:is-open="showContextMenu"
|
||||||
:show-copy="hasText"
|
:show-copy="hasText"
|
||||||
:show-delete="hasTextOrAttachment"
|
:show-delete="hasText || hasAttachments"
|
||||||
:show-canned-response-option="isOutgoing && hasText"
|
:show-canned-response-option="isOutgoing && hasText"
|
||||||
:menu-position="contextMenuPosition"
|
:menu-position="contextMenuPosition"
|
||||||
:message-content="data.content"
|
:message-content="data.content"
|
||||||
@@ -309,9 +309,6 @@ export default {
|
|||||||
hasText() {
|
hasText() {
|
||||||
return !!this.data.content;
|
return !!this.data.content;
|
||||||
},
|
},
|
||||||
hasTextOrAttachment() {
|
|
||||||
return this.hasText || this.data.attachments.length > 0;
|
|
||||||
},
|
|
||||||
tooltipForSender() {
|
tooltipForSender() {
|
||||||
const name = this.senderNameForAvatar;
|
const name = this.senderNameForAvatar;
|
||||||
const { message_type: messageType } = this.data;
|
const { message_type: messageType } = this.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user