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 }} - +