Chatwoot/app/javascript/widget/mixins/messageMixin.js
2021-07-15 14:27:37 +05:30

13 lines
298 B
JavaScript

export default {
computed: {
messageContentAttributes() {
const { content_attributes: attribute = {} } = this.message;
return attribute;
},
hasAttachments() {
return !!(
this.message.attachments && this.message.attachments.length > 0
);
},
},
};