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

updatedMessage

The updated copy of the message created using the message.copy method.

operationDescription

Optional description for the update action.

operationMetadata

Optional metadata for the update action.