PromoteAdminAndLeaveConversationUseCaseImpl

Constructors

constructor(updateConversationMemberRole: UpdateConversationMemberRoleUseCase, leaveConversation: LeaveConversationUseCase)

Functions

Link copied to clipboard
open suspend operator override fun invoke(conversationId: ConversationId, userId: UserId): PromoteAdminAndLeaveConversationUseCase.Result

Promotes the given userId to admin role in conversationId, then removes the self user from that conversation.