delete Messages
fun deleteMessages( context: Context, messageList: List<Int>, callback: CompletionCallback?)
Content copied to clipboard
Call this method to delete an existing list of messages.
This method is automatically deletes the message and its attachment if it exists and sends the necessary requests to the back-end.
The message deletion will be executed one by one.
Parameters
context
The application context
message List
A list of messages ids to delete
callback
This callback will be invoked to handle operation result :
Success : The request to delete messages is successfully sent to the server
Error : a local error occurred when trying to delete the messages