UpdateConversationAccessRoleUseCase
class UpdateConversationAccessRoleUseCase(conversationRepository: ConversationRepository, conversationGroupRepository: ConversationGroupRepository, syncManager: SyncManager)
This use case will update the access and access role configuration of a conversation. So we can operate and allow or not operation based on these roles:
Conversation.isGuestAllowed
Conversation.isServicesAllowed
Conversation.isTeamGroup
Conversation.isNonTeamMemberAllowed
See also
Conversation.AccessRole
and based on access
Conversation.Access.CODE
Conversation.Access.INVITE
Conversation.Access.LINK
Conversation.Access.PRIVATE
Conversation.Access.SELF_INVITE
Conversation.Access
Constructors
Link copied to clipboard
internal constructor(conversationRepository: ConversationRepository, conversationGroupRepository: ConversationGroupRepository, syncManager: SyncManager)
Functions
Link copied to clipboard
suspend operator fun invoke(conversationId: <Error class: unknown class>, accessRoles: Set<<Error class: unknown class>>, access: Set<<Error class: unknown class>>): UpdateConversationAccessRoleUseCase.Result