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();