SendReactionListener

Functions

Link copied to clipboard
abstract suspend fun onSendReactionPrecondition(currentUser: User?, reaction: Reaction): Result<Unit>

Runs precondition check for ChatClient.sendReaction. 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 onSendReactionRequest(cid: String?, reaction: Reaction, enforceUnique: Boolean, currentUser: User)

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

Link copied to clipboard
abstract suspend fun onSendReactionResult(cid: String?, reaction: Reaction, enforceUnique: Boolean, currentUser: User, result: Result<Reaction>)

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