getMessagesFlow

fun getMessagesFlow(predicate: Predicate<Message>? = null): Flow<List<Message>>

Subscribes to the list of messages as a flow. The flow will emit the current list of messages, filtered by the provided predicate, and sorted by descending sent-at date, and will emit new lists whenever the inbox is updated.

Return

A flow of filtered and sorted Messages.

Parameters

predicate

A predicate for filtering messages. If null, no predicate will be applied.