handleFailureAndUpdateMessageStatus
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.
Parameters
failure
the failure that occured
conversationId
id of the conversation of the message that failed
messageId
id of the message that failed
messageType
type of the message that failed (for logging purposes)
scheduleResendIfNoNetwork
flag determining if the app should schedule automatic resending of failed message