resend Message
fun resendMessage( context: Context, messageId: Int?, completionCallback: CompletionCallback? = null, progressChanged: (attachmentId: Int, progress: Int, total: Int) -> Unit? = null)
Content copied to clipboard
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
(Context, String, Attachment, String, MessageRequest.Builder)
Parameters
context
The application context
message Id
the id of message to resend
completion Callback
: (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