DeleteMessageForMeListener

Listener for requests of deleting a message for the current user and for the results of such requests.

Inheritors

Functions

Link copied to clipboard
open suspend fun onDeleteMessageForMePrecondition(messageId: String): Result<Unit>

Runs precondition check for ChatClient.deleteMessageForMe.

Link copied to clipboard
open suspend fun onDeleteMessageForMeRequest(messageId: String)

Method called when a request to delete a message for the current user in the API happens.

Link copied to clipboard
open suspend fun onDeleteMessageForMeResult(messageId: String, result: Result<Message>)

Method called when a request to delete a message for the current user in the API finishes. Use it to update database, update messages or to present an error to the user.