getOldestUnreadMessageIdInConversation

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

Call this method to retrieve the id of the oldest unread message in the associated conversation from local Database.

Return

Id of the oldest unread message in the associated conversation or -1 in case of not existing conversationId

Parameters

context

The application context

conversationId

The conversation id