getConversationBySingleContact

suspend fun getConversationBySingleContact(context: Context, recipient: STWContact?): STWConversation?

Call this method to retrieve a one to one conversation from local Database given the recipient represented bySTWContact.

This method should be called only from a coroutine or another suspend function

Return

The conversation represented by STWConversation or null

See also

Parameters

context

The application context

recipient

The contact that you want to retrieve it's conversation


suspend fun getConversationBySingleContact(context: Context, recipient: STWSingleContact?): STWConversation?

Call this method to retrieve a one to one conversation from local Database given the recipient represented bySTWSingleContact.

This method should be called only from a coroutine or another suspend function

Return

The conversation represented by STWConversation or null

See also

Parameters

context

The application context

recipient

The contact that you want to retrieve it's conversation


fun getConversationBySingleContact(    context: Context,     recipient: STWContact?,     completion: (STWConversation?) -> Unit)

Call this method to retrieve a one to one conversation from local Database given the recipient represented bySTWContact.

This method should be called only from a coroutine or another suspend function

See also

Parameters

context

The application context

recipient

The contact that you want to retrieve it's conversation

completion

callback taht returns the retrieved conversation represented by STWConversation or null