sendMessage

fun sendMessage(message: Message, callback: Call.Callback<Message>)

Sends a given message using our Stream API. Based on isInEditMode, we either edit an existing message, or we send a new message, using ChatClient. In case the message is a moderated message the old one is deleted before the replacing one is sent.

It also dismisses any current message actions.

Parameters

message

The message to send.