From 8ee7713623dcc2013fb825e9cfe1db27d6012fa6 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 10 Dec 2023 23:02:17 -0800 Subject: [PATCH] feat: set originalContent for better chat log --- src/lib/components/chat/Messages.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index dc454550..2a950995 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -162,6 +162,7 @@ const editMessageHandler = async (messageId) => { // let editMessage = history.messages[messageId]; history.messages[messageId].edit = true; + history.messages[messageId].originalContent = history.messages[messageId].content; history.messages[messageId].editedContent = history.messages[messageId].content; await tick();