getChatMessages

fun getChatMessages(chatId: String): Flow<List<Message>>

Retrieves all messages for a specific chat as a Flow.

Return

A Flow emitting a List of Message objects for the chat.

Parameters

chatId

The ID of the chat to retrieve messages for.