getNumberOfUnreadMessageInConversation

open fun getNumberOfUnreadMessageInConversation(@NonNull context: Context, @NonNull conversationId: String): Int

Call this method to retrieve the total number of unread message in the specified conversation from local Database.

Return

Numberof unread message in the specified conversation

Parameters

context

The application context

conversationId

The conversation Id