UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

13 lines (12 loc) 594 B
/** * Returns the number of conversations that have at least one unread message. * Initialized from the server on ChatProvider mount — accurate before the * conversation list is ever loaded. Kept in sync via socket events. * * Note: when a new message arrives from a conversation not yet loaded into * the conversation list (e.g. paginated out), only `useTotalUnreadCount` is * bumped — this count is not adjusted for that edge case and re-syncs on * the next ChatProvider mount. */ declare function useUnreadConversationCount(): number; export default useUnreadConversationCount;