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
2025-12-31 17:40:35 +04:00
committed by GitHub
parent 5a556b00c3
commit 252a983091
2 changed files with 34 additions and 7 deletions
+4
View File
@@ -346,6 +346,10 @@
};
const saveMessage = async (messageId, message) => {
if (!history.messages?.[messageId]) {
return;
}
history.messages[messageId] = message;
await updateChat();
};