Companion

object Companion

Companion object for Message utilities.

Functions

Link copied to clipboard
fun create(content: String): Message

Creates a new local Message instance intended to be sent by the current user. This message is initialized with a unique correlation ID, the current timestamp, and marked as originating from the local cache. The id and channelId will typically be populated later when the message is associated with a channel and successfully sent.