resendMessage

fun resendMessage(    context: Context,     messageId: Int?,     completionCallback: CompletionCallback? = null,     progressChanged: (attachmentId: Int, progress: Int, total: Int) -> Unit? = null)

Call this method to resend a failed message.

This method does not create a new conversation if not exist

If an attachment exists, this method will attempt to upload it, and if successful, the message will be added to the request queue.

See also

Parameters

context

The application context

messageId

the id of message to resend

completionCallback

: (CompletionCallback) This callback will be invoked to handle operation result : Success : The message is successfully added to the sending queue. Error : a local error occurred when trying to send message

progressChanged

This callback is called once the message has an attachment that will be uploaded. such as : messageId : (Int) Message content text