update
abstract suspend fun update(updatedMessage: Message, operationDescription: String? = null, operationMetadata: OperationMetadata? = null): Message
Update a message in the chat room.
This method uses the Ably Chat API REST endpoint for updating messages. It creates a new message with the same serial and a new version. The original message is not modified. Spec: CHA-M8
Parameters
updated Message
The updated copy of the message created using the message.copy
method.
operation Description
Optional description for the update action.
operation Metadata
Optional metadata for the update action.