JoinConversationViaCodeUseCase

class JoinConversationViaCodeUseCase(conversionsGroupRepository: ConversationGroupRepository, conversationRepository: ConversationRepository, memberJoinEventHandler: MemberJoinEventHandler, joinExistingMLSConversation: JoinExistingMLSConversationUseCase, mlsConversationRepository: MLSConversationRepository, transactionProvider: CryptoTransactionProvider, selfUserId: UserId, eventMapper: EventMapper = MapperProvider.eventMapper(selfUserId))

Use case for joining a conversation via a code invite code. the param can be obtained from the deep link

Parameters

code

The code of the conversation to join.

key

The key of the conversation to join.

domain

optional domain of the conversation to join.

Constructors

Link copied to clipboard
internal constructor(conversionsGroupRepository: ConversationGroupRepository, conversationRepository: ConversationRepository, memberJoinEventHandler: MemberJoinEventHandler, joinExistingMLSConversation: JoinExistingMLSConversationUseCase, mlsConversationRepository: MLSConversationRepository, transactionProvider: CryptoTransactionProvider, selfUserId: UserId, eventMapper: EventMapper = MapperProvider.eventMapper(selfUserId))

Types

Link copied to clipboard
sealed interface Result

Functions

Link copied to clipboard
suspend operator fun invoke(code: String, key: String, domain: String?, password: String?): JoinConversationViaCodeUseCase.Result