From 85324c82fa2e8836db87b9000d274911059667c4 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:35:32 +0530 Subject: [PATCH] fix: Formatting issue with reply preview content (#13399) --- .../dashboard/components-next/message/bubbles/Base.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Base.vue b/app/javascript/dashboard/components-next/message/bubbles/Base.vue index f66f272de..c40d63363 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Base.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Base.vue @@ -7,6 +7,7 @@ import { emitter } from 'shared/helpers/mitt'; import { useMessageContext } from '../provider.js'; import { useI18n } from 'vue-i18n'; +import MessageFormatter from 'shared/helpers/MessageFormatter.js'; import { BUS_EVENTS } from 'shared/constants/busEvents'; import { MESSAGE_VARIANTS, ORIENTATION } from '../constants'; @@ -80,7 +81,7 @@ const replyToPreview = computed(() => { const { content, attachments } = inReplyTo.value; - if (content) return content; + if (content) return new MessageFormatter(content).formattedMessage; if (attachments?.length) { const firstAttachment = attachments[0]; const fileType = firstAttachment.fileType ?? firstAttachment.file_type; @@ -107,9 +108,10 @@ const replyToPreview = computed(() => { class="p-2 -mx-1 mb-2 rounded-lg cursor-pointer bg-n-alpha-black1" @click="scrollToMessage" > - - {{ replyToPreview }} - +