MessageSendFailureHandler

Functions

Link copied to clipboard
abstract suspend fun handleClientsHaveChangedFailure(transactionContext: CryptoTransactionContext, sendFailure: ProteusSendMessageFailure, conversationId: ConversationId?): Either<CoreFailure, Unit>

Handle a failure when attempting to send a message due to contacts and/or clients being removed from conversation and/or added to them.

Link copied to clipboard
abstract suspend fun handleFailureAndUpdateMessageStatus(failure: CoreFailure, conversationId: ConversationId, messageId: String, messageType: String, scheduleResendIfNoNetwork: Boolean = false)

Handle a failure when attempting to send a message update the message status to FAILED or FAILED_REMOTELY depending on the resulted failure.