fix: cross-chat data corruption and tiptap editor access errors (#20266)
* fix: prevent cross-chat corruption and editor access errors * fix: safety check in Messages.svelte and cleanup in RichTextInput
This commit is contained in:
@@ -346,6 +346,10 @@
|
||||
};
|
||||
|
||||
const saveMessage = async (messageId, message) => {
|
||||
if (!history.messages?.[messageId]) {
|
||||
return;
|
||||
}
|
||||
|
||||
history.messages[messageId] = message;
|
||||
await updateChat();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user