Use shared EmailWebSocketContext for real-time unread badge updates

Fixkamo-internal
Navios
17 de março de 2026 às 21:41 UTC
Autor
kamo
Enviar
04f1763

MailButton was creating a duplicate WebSocket connection via useEmailWebSocket() and optimistically incrementing the unread count. Now uses the shared useEmailWebSocketContext() and re-fetches the actual count from the server on each notification, consistent with how FolderSidebar and MessageBrowser work.

Todas as alterações

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços