updateLastMessage

abstract suspend fun updateLastMessage(conversationId: String, lastMessage: String, timestamp: Long)

Updates the last message and its timestamp for a specific conversation.

Parameters

conversationId

The unique ID of the conversation.

lastMessage

The latest message text.

timestamp

The time when the last message was sent.