feat: set originalContent for better chat log

This commit is contained in:
Timothy J. Baek 2023-12-10 23:02:17 -08:00
parent 734ba8f762
commit 8ee7713623

View file

@ -162,6 +162,7 @@
const editMessageHandler = async (messageId) => { const editMessageHandler = async (messageId) => {
// let editMessage = history.messages[messageId]; // let editMessage = history.messages[messageId];
history.messages[messageId].edit = true; history.messages[messageId].edit = true;
history.messages[messageId].originalContent = history.messages[messageId].content;
history.messages[messageId].editedContent = history.messages[messageId].content; history.messages[messageId].editedContent = history.messages[messageId].content;
await tick(); await tick();