mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
addToast() minted toast ids with crypto.randomUUID(), which only exists in secure contexts (https/localhost). On a plain-http LAN origin every toast.success/toast.error threw a TypeError, so e.g. calendar event Save crashed AFTER a successful CalendarEvent/set — before the dialog-close ran — leaving the dialog open reporting failure while the server had the event; retries created duplicates. Same class as the generateMessageId send bug. Also guards the same-class contact uid fallback in lib/jmap/client.ts (createContact). Both now use the guarded generateUUID() from lib/utils. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MtFkcUA8VM2XAKZKzptpqy