mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-23 16:01:15 +00:00
Replace the default Next.js favicon.ico with an SVG mail icon from Lucide and add useFaviconBadge, a canvas-based hook that draws a red unread-count badge on the tab favicon. Shows "+" when count > 9. On Safari 15 and below (no Canvas roundRect), falls back to fillRect. Also fixes a real JMAP push bug in the email store: Mailbox state changes on push weren't always paired with Email changes, so unread counts in the sidebar could go stale when a new message arrived. Now Email changes refresh mailbox counts too, and the Mailbox branch de-dups when both fire in the same push. Credits #63 (@jabiinfante).