GetOrCreateOneToOneConversationUseCase

Operation that creates one-to-one Conversation with specific UserId (only if it is absent in local DB) and returns Conversation data.

Return

Result with Conversation in case of success, or CoreFailure if something went wrong: can't get data from local DB, or can't create a conversation.

Parameters

otherUserId

UserId private conversation with which we are interested in.

Inheritors

Functions

Link copied to clipboard
abstract suspend operator fun invoke(otherUserId: <Error class: unknown class>): CreateConversationResult