MessageSendFailureHandler

Functions

Link copied to clipboard
abstract suspend fun handleClientsHaveChangedFailure(sendFailure: ProteusSendMessageFailure, conversationId: <Error class: unknown class>?): 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: <Error class: unknown class>, 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.