Overview
Returns the total count of unread messages across all of the current user’s conversations. This value is fetched from the server onChatProvider mount and kept in sync via socket events as new messages arrive.
Requires
ChatProvider in the component tree.Usage Example
Returns
Total unread message count. Returns
0 before the first fetch completes.Notes
- This count is accurate before the conversation list is ever loaded — useful for showing a badge in navigation without requiring the user to visit the chat screen first.
- For integration guidance, see Chat: Real-time.

