onCreateChannelPrecondition
abstract fun onCreateChannelPrecondition(currentUser: User?, channelId: String, memberIds: List<String>): Result<Unit>
Runs precondition check for ChatClient.createChannel. 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.
channelId
The channel id. ie 123.
memberIds
The list of members' ids.