getGroupConversationByRecipients

open fun getGroupConversationByRecipients(@NonNull context: Context, @NonNull recipients: Array<String>): ThreadItem

Call this method to retrieve a group conversation from local Database object given groups and users.

This method returns the last active (as long as the user has not left) updated conversation.

Return

The conversation represented by ThreadItem or null

Parameters

context

The application context.

recipients

The list of international phone numbers and/or list of groups (example of users format: [group:1,group:2,1234567891,1234567892,1234567893])