diff --git a/app/javascript/widget/components/AgentMessage.vue b/app/javascript/widget/components/AgentMessage.vue
index 6b9609a6b..02229e984 100755
--- a/app/javascript/widget/components/AgentMessage.vue
+++ b/app/javascript/widget/components/AgentMessage.vue
@@ -13,6 +13,22 @@
/>
+
+
+
+
+
+
{{ replyToAttachment }}
+
+
+
{},
},
+ replyTo: {
+ type: Object,
+ default: () => {},
+ },
},
data() {
return {
@@ -180,6 +209,14 @@ export default {
'has-text': this.shouldDisplayAgentMessage,
};
},
+ replyToAttachment() {
+ if (!this.replyTo?.attachments.length) {
+ return '';
+ }
+
+ const [{ file_type: fileType } = {}] = this.replyTo.attachments;
+ return this.$t(`ATTACHMENTS.${fileType}.CONTENT`);
+ },
},
watch: {
message() {
@@ -196,3 +233,9 @@ export default {
},
};
+
+
diff --git a/app/javascript/widget/components/ChatMessage.vue b/app/javascript/widget/components/ChatMessage.vue
index b70c3b2c2..9783eabb0 100755
--- a/app/javascript/widget/components/ChatMessage.vue
+++ b/app/javascript/widget/components/ChatMessage.vue
@@ -1,11 +1,12 @@
-
-
+
+