getOrCreateConversationId
abstract suspend fun getOrCreateConversationId(conversationContacts: Set<ConversationContact>, messageType: MessageType, source: ConversationSource?): Uid<Conversation>?
Returns the ID of the conversation between the user and conversationContacts that contains messages of type messageType and originates from the source. If the conversation does not exist and the provider supports this, a new one is created and its corresponding ID is returned. Otherwise null
is returned.
Return
The ID of the conversation or null
if not supported.
Parameters
conversationContacts
The set of contacts that should match the conversations contacts.
messageType
The message type that the conversation should have.
source
The source of the conversation.