updateWithMessage

suspend fun updateWithMessage(conversationId: String, message: Message)

Updates the conversation with the latest message. Increments unread count if the message is from another user.

Parameters

conversationId

The unique ID of the conversation.

message

The Message to update in the conversation.