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:
G30 authored and GitHub committed 2025-12-31 17:40:35 +04:00
1 parent 5a556b00c3
commit 252a983091
2 files changed
+34 -7

No files matched your search

+4
View File
@@ -346,6 +346,10 @@
};
const saveMessage = async (messageId, message) => {
if (!history.messages?.[messageId]) {
return;
}
history.messages[messageId] = message;
await updateChat();
};