findOrCreateConversation

fun findOrCreateConversation(contacts: Set<ConversationContact>, messageType: MessageType, source: ConversationSource?, applicationDisplayName: StringResolver, conversationCapabilities: EnumSet<ConversationCapability>): Conversation

Finds a conversation originating from the source that has the specified contacts and the specified messageType. Otherwise, creates and adds a new conversation with the specified parameters.

Return

The found conversation, or a newly created one.

Parameters

applicationDisplayName

The application display name to use to create a new conversation.

conversationCapabilities

The capabilities to use to create a new conversation.