SendMultipartMessageUseCase

class SendMultipartMessageUseCase(persistMessage: PersistMessageUseCase, selfUserId: QualifiedID, provideClientId: CurrentClientIdProvider, assetDataSource: AssetRepository, slowSyncRepository: SlowSyncRepository, messageSender: MessageSender, messageSendFailureHandler: MessageSendFailureHandler, userPropertyRepository: UserPropertyRepository, conversationRepository: ConversationRepository, attachmentsRepository: MessageAttachmentDraftRepository, selfDeleteTimer: ObserveSelfDeletionTimerSettingsForConversationUseCase, publishAttachments: PublishAttachmentsUseCase, removeAttachmentDrafts: RemoveAttachmentDraftsUseCase, sendAssetMessage: ScheduleNewAssetMessageUseCase, dispatchers: KaliumDispatcher = KaliumDispatcherImpl, scope: CoroutineScope)

Use case to send a multipart message. Sends Multipart message with multiple attachments in conversations with Cell Feature enabled. For regular conversations, each attachment is sent as a separate Asset message.

Constructors

Link copied to clipboard
internal constructor(persistMessage: PersistMessageUseCase, selfUserId: QualifiedID, provideClientId: CurrentClientIdProvider, assetDataSource: AssetRepository, slowSyncRepository: SlowSyncRepository, messageSender: MessageSender, messageSendFailureHandler: MessageSendFailureHandler, userPropertyRepository: UserPropertyRepository, conversationRepository: ConversationRepository, attachmentsRepository: MessageAttachmentDraftRepository, selfDeleteTimer: ObserveSelfDeletionTimerSettingsForConversationUseCase, publishAttachments: PublishAttachmentsUseCase, removeAttachmentDrafts: RemoveAttachmentDraftsUseCase, sendAssetMessage: ScheduleNewAssetMessageUseCase, dispatchers: KaliumDispatcher = KaliumDispatcherImpl, scope: CoroutineScope)

Types

Link copied to clipboard
internal object Companion

Functions

Link copied to clipboard
suspend operator fun invoke(conversationId: ConversationId, text: String, linkPreviews: List<MessageLinkPreview> = emptyList(), mentions: List<MessageMention> = emptyList(), quotedMessageId: String? = null): MessageOperationResult