onHideChannelPrecondition

abstract suspend fun onHideChannelPrecondition(channelType: String, channelId: String, clearHistory: Boolean): Result<Unit>

Run precondition for the request. If it returns Result.Success then the request is run otherwise it returns Result.Failure and no request is made.

Return

Result.Success if precondition passes otherwise Result.Failure

Parameters

channelType

Type of the requested channel.

channelId

Id of the requested channel.

clearHistory

Boolean, if you want to clear the history of this channel or not.