RetryFailedMessageUseCase
class RetryFailedMessageUseCase(messageRepository: MessageRepository, assetRepository: AssetRepository, persistMessage: PersistMessageUseCase, scope: <Error class: unknown class>, dispatcher: <Error class: unknown class>, messageSender: MessageSender, updateAssetMessageTransferStatus: UpdateAssetMessageTransferStatusUseCase, getAssetMessageTransferStatusUseCase: GetAssetMessageTransferStatusUseCase, messageSendFailureHandler: MessageSendFailureHandler)
Constructors
Link copied to clipboard
internal constructor(messageRepository: MessageRepository, assetRepository: AssetRepository, persistMessage: PersistMessageUseCase, scope: <Error class: unknown class>, dispatcher: <Error class: unknown class>, messageSender: MessageSender, updateAssetMessageTransferStatus: UpdateAssetMessageTransferStatusUseCase, getAssetMessageTransferStatusUseCase: GetAssetMessageTransferStatusUseCase, messageSendFailureHandler: MessageSendFailureHandler)
Functions
Link copied to clipboard
suspend operator fun invoke(messageId: String, conversationId: <Error class: unknown class>): Either<CoreFailure, Unit>
Function that enables resending of failed message to a given conversation with the strategy of fire & forget. This message must have a status of Message.Status.Failed or Message.Status.FailedRemotely.