Chatwoot/app/javascript/widget/mixins/messageMixin.js

14 lines
298 B
JavaScript
Raw Permalink Normal View History

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