onMessageDeletePrecondition

open suspend override fun onMessageDeletePrecondition(messageId: String): Result<Unit>

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

messageId

The message id to be deleted.