getLastActiveConversationByGroupId

open fun getLastActiveConversationByGroupId(@NonNull context: Context, @NonNull groupId: String): ThreadItem

Call this method to retrieve the last active conversation (one to many or group) from local Database initiated with only the given group ID.

A conversation is active as long as the user has not left.

Return

The conversation represented by ThreadItem or null

Parameters

context

The application context

groupId

The group ID.