DeleteReactionListener

Functions

Link copied to clipboard
abstract fun onDeleteReactionPrecondition(currentUser: User?): Result<Unit>

Runs precondition check for ChatClient.deleteReaction. 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 onDeleteReactionRequest(cid: String?, messageId: String, reactionType: String, currentUser: User)

A method called before making an API call to delete the reaction.

Link copied to clipboard
abstract suspend fun onDeleteReactionResult(cid: String?, messageId: String, reactionType: String, currentUser: User, result: Result<Message>)

A method called after receiving the response from the delete reaction call.