Use shared EmailWebSocketContext for real-time unread badge updates

Fixkamo-internal
Змішані
17 березня 2026 р. о 21:41 UTC
Авторизація
kamo
Про нас
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.

Всі зміни

Як ви бачите відправлення?

Кожен з цих оновлень землі в робочому просторі автоматично. Почати вільний час і дивитися його на тиждень після тижня.

БезкоштовноПерегляд цін