Overview
Returns the number of conversations that have at least one unread message. This value is fetched from the server onChatProvider mount and kept in sync via socket events.
Requires
ChatProvider in the component tree.Usage Example
Returns
Number of conversations with at least one unread message. Returns
0 before the first fetch completes.Notes
- When a new message arrives from a conversation not yet loaded in the conversation list (e.g. paginated out), this count may not be incremented for that edge case. It re-syncs on the next
ChatProvidermount. - To get the total number of unread messages (not conversations), use
useTotalUnreadCount. - For integration guidance, see Chat: Real-time.

