getConversationByRecipient

open fun getConversationByRecipient(@NonNull context: Context, @NonNull internationalNumber: String): ThreadItem

Call this method to retrieve a one to one conversation from local Database object given international phone number of the recipient.

Return

The conversation represented by ThreadItem or null

Parameters

context

The application context

internationalNumber

The international number of the recipient