diff --git a/app/javascript/dashboard/components/widgets/conversation/bubble/Text.vue b/app/javascript/dashboard/components/widgets/conversation/bubble/Text.vue
index a9127ac16..bc24ed90f 100644
--- a/app/javascript/dashboard/components/widgets/conversation/bubble/Text.vue
+++ b/app/javascript/dashboard/components/widgets/conversation/bubble/Text.vue
@@ -7,11 +7,12 @@
}"
>
+
@@ -41,10 +45,9 @@
class="flex items-center justify-start w-auto min-w-0 p-1 text-sm font-semibold text-slate-700 dark:text-slate-100"
>
- {{ fileNameFromDataUrl }}
-
+ />
1;
},
readableTime() {
- if (!this.activeAttachment.created_at) return '';
- const time = this.messageTimestamp(
- this.activeAttachment.created_at,
- 'LLL d yyyy, h:mm a'
- );
- return time || '';
+ const { created_at: createdAt } = this.activeAttachment;
+ if (!createdAt) return '';
+ return this.messageTimestamp(createdAt, 'LLL d yyyy, h:mm a') || '';
},
isImage() {
return this.activeFileType === ALLOWED_FILE_TYPES.IMAGE;
@@ -271,7 +271,7 @@ export default {
const { data_url: dataUrl } = this.activeAttachment;
if (!dataUrl) return '';
const fileName = dataUrl?.split('/').pop();
- return fileName || '';
+ return decodeURIComponent(fileName || '');
},
imageRotationStyle() {
return {