From c924d386f4e1e61f5c75c4e18a6ead904f856079 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 8 Jan 2025 08:58:21 +0530 Subject: [PATCH] fix: reply-to preview not working on next bubbles (#10649) --- .../dashboard/components-next/message/bubbles/Base.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Base.vue b/app/javascript/dashboard/components-next/message/bubbles/Base.vue index 949f5b024..3bc912713 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Base.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Base.vue @@ -58,14 +58,14 @@ const messageClass = computed(() => { const scrollToMessage = () => { emitter.emit(BUS_EVENTS.SCROLL_TO_MESSAGE, { - messageId: this.message.id, + messageId: inReplyTo.value.id, }); }; -const previewMessage = computed(() => { +const replyToPreview = computed(() => { if (!inReplyTo) return ''; - const { content, attachments } = inReplyTo; + const { content, attachments } = inReplyTo.value; if (content) return content; if (attachments?.length) { @@ -91,11 +91,11 @@ const previewMessage = computed(() => { >
- {{ previewMessage }} + {{ replyToPreview }}