currentUserUnreadCount

fun Channel.currentUserUnreadCount(currentUserId: UserId? = ChatClient.instance().getCurrentUser()?.id): Int

Returns the number of unread messages in the channel for the current user.

Return

The number of unread messages in the channel for the current user.