From 540a669daea499fa33f514f825d9614de9d20d9f Mon Sep 17 00:00:00 2001 From: Michael Poluektov Date: Fri, 12 Jul 2024 10:41:03 +0100 Subject: [PATCH] feat: replace message event --- src/lib/components/chat/Chat.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 6fce08a8b..9f9cbd717 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -161,6 +161,8 @@ } } else if (type === 'message') { message.content += data.content; + } else if (type === 'replace') { + message.content = data.content; } else if (type === 'confirmation') { eventCallback = cb;