onDeleteChannelPrecondition

open suspend override fun onDeleteChannelPrecondition(currentUser: User?, channelType: String, channelId: String): Result<Unit>

Runs precondition check for ChatClient.deleteChannel. 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.

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.