DeleteMessageUseCase

class DeleteMessageUseCase(messageRepository: MessageRepository, assetRepository: AssetRepository, slowSyncRepository: SlowSyncRepository, messageSender: MessageSender, selfUserId: <Error class: unknown class>, currentClientIdProvider: CurrentClientIdProvider, selfConversationIdProvider: SelfConversationIdProvider, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)

Deletes a message from the conversation

Constructors

Link copied to clipboard
internal constructor(messageRepository: MessageRepository, assetRepository: AssetRepository, slowSyncRepository: SlowSyncRepository, messageSender: MessageSender, selfUserId: <Error class: unknown class>, currentClientIdProvider: CurrentClientIdProvider, selfConversationIdProvider: SelfConversationIdProvider, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)

Functions

Link copied to clipboard
suspend operator fun invoke(conversationId: <Error class: unknown class>, messageId: String, deleteForEveryone: Boolean): Either<CoreFailure, Unit>

Operation to delete a message from the conversation