getThreadsByRecipients

open fun getThreadsByRecipients(    @NonNull context: Context,     @Nullable groups: List<ContactItem>,     @Nullable phones: List<PhoneItem>): List<ThreadItem>

Call this method to retrieve all the conversations by the exact list of recipients (single user and group contacts)

Return

Conversation list ordered by message date or null if the result is empty.

Parameters

context

The application context

groups

: List of ContactItems, it can be null

phones

: List of PhoneItems, it can be null