onSendReactionPrecondition

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.

Return

Result.Success if the precondition is fulfilled, Result.Failure otherwise.

Parameters

currentUser

The currently logged in user.

reaction

The Reaction to send.