Fix admin authorization and harden chat requests
CI / check (22) (push) Successful in 10m3s
CI / check (24) (push) Successful in 9m34s

This commit is contained in:
2026-10-05 22:49:29 +02:00
parent e8cd13a0af
commit c48e1b17c4
38 changed files with 4897 additions and 1257 deletions
+9
View File
@@ -129,6 +129,15 @@ export function createAttachmentComposer({onChange, onError}) {
drafts.delete(chatId);
render();
},
clearSentDraft(chatId, ids) {
const saved = drafts.get(chatId) || [];
const sent = new Set(ids);
drafts.set(chatId, saved.filter(item => {
if (!sent.has(item.metadata?.id)) return true;
URL.revokeObjectURL(item.preview);
return false;
}));
},
discardDraft(chatId) {
const saved = drafts.get(chatId) || [];
drafts.delete(chatId);