DeleteMessageListener

Listener for requests of message deletion and for message deletion results.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun onMessageDeletePrecondition(messageId: String): Result<Unit>

Runs precondition check for ChatClient.deleteMessage. The request will be run if the method returns Result.Success and won't be made if it returns Result.Failure.

Link copied to clipboard
abstract suspend fun onMessageDeleteRequest(messageId: String)

Method called when a request to delete a message in the API happens

Link copied to clipboard
abstract suspend fun onMessageDeleteResult(originalMessageId: String, result: Result<Message>)

Method called when a request for message deletion return. Use it to update database, update messages or to present an error to the user.