resend Message
open fun resendMessage( @NonNull context: Context, @NonNull messageId: String, @Nullable completion: CompletionCallback)
Content copied to clipboard
Call this method to resend a failed message.
An event IConversationObservable will be delegated when the message is successfully sent or failed.
See also
Parameters
context
The application context.
message Id
BaseMessage object returned in onCompletion of the CompletionCallback
completion
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 resend message