deleteConversations

open fun deleteConversations(    @NonNull context: Context,     @NonNull conversations: List<ThreadItem>,     @Nullable callback: STWOperationCallback<MessagingError>)

Call this method to delete an existing list of conversations.

This method is automatically deletes the conversations and its messages if it exists and sends the necessary requests to the back-end.

See also

Parameters

context

The application context

conversations

A list of conversation to delete

callback

This callback will be invoked to handle operation result :

  • Success : The conversations are successfully deleted
  • Error : an error occurred when trying to delete conversations