From 9c5773d0afa99ee2ad9be60f00f8694993417038 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Mon, 5 Jan 2026 09:15:00 -0500 Subject: [PATCH] feat: add chat:message:favorite event for action functions (#20375) * feat: add chat:message:favorite event for action functions * Update Chat.svelte * Update Chat.svelte --- src/lib/components/chat/Chat.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 22276ca10..011afca87 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -390,6 +390,9 @@ if (autoScroll) { scrollToBottom('smooth'); } + } else if (type === 'chat:message:favorite') { + // Update message favorite status + message.favorite = data.favorite; } else if (type === 'chat:title') { chatTitle.set(data); currentChatPage.set(1);