deleteConversation

open fun deleteConversation(    @NonNull context: Context,     @NonNull conversation: ThreadItem,     @Nullable callback: STWOperationCallback<MessagingError>)

Call this method to delete an existing conversation.

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

See also

Parameters

context

The application context

conversation

A conversation to delete

callback

This callback will be invoked to handle operation result :

  • Success : The conversation is successfully deleted
  • Error : an error occurred when trying to delete conversation