public fun muteUser( userId: String, timeout: Int? = null, ) { chatClient.muteUser(userId, timeout) .enqueue(onError = { chatError -> val errorMessage = chatError.message ?: chatError.cause?.message ?: "Unable to mute the user" StreamLog.e("MessageListViewModel.muteUser") { errorMessage } }) }
Mutes the given user inside this channel.