getNumberOfMessagesInConversation

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

Call this method to retrieve the total number of messages (except draft messages) in a conversation from local Database given conversationId.

Return

Number of messages in a conversation

Parameters

context

The application context

conversationId

The conversation ID