From 93c708cd6586de1b5bd7347ea39eca11067ab08d Mon Sep 17 00:00:00 2001 From: vivek <2428045@kiit.ac.in> Date: Sat, 24 Jan 2026 18:32:53 +0530 Subject: [PATCH] fix: resolve duplicated links when quoting multiple messages in ChatInput --- packages/react/src/views/ChatInput/ChatInput.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/src/views/ChatInput/ChatInput.js b/packages/react/src/views/ChatInput/ChatInput.js index e753b689a..a43560889 100644 --- a/packages/react/src/views/ChatInput/ChatInput.js +++ b/packages/react/src/views/ChatInput/ChatInput.js @@ -298,17 +298,17 @@ const ChatInput = ({ scrollToBottom, clearUnreadDividerRef }) => { // } // } - const quoteArray = await Promise.all( + const quoteLinks = await Promise.all( quoteMessage.map(async (quote) => { const { msg, attachments, _id } = quote; if (msg || attachments) { const msgLink = await getMessageLink(_id); - quotedMessages += `[ ](${msgLink})`; + return `[ ](${msgLink})`; } - return quotedMessages; + return ''; }) ); - quotedMessages = quoteArray.join(''); + quotedMessages = quoteLinks.join(''); pendingMessage = createPendingMessage( `${quotedMessages}\n${message}`, userInfo