scheduledMessages

fun scheduledMessages(cid: String, parentId: String? = null): Flow<List<ScheduledMessage>>

The current user's scheduled messages in a channel or a thread, from scheduledMessages.

Return

A Flow of the scheduled messages, in the order of scheduledMessages.

Parameters

cid

The channel of the scheduled messages in the format type:id.

parentId

The ID of the thread, or null for the messages scheduled in the channel, outside threads.


The current user's scheduled messages known on this device: the pending ones first, then the failed ones, each sorted by ScheduledMessage.scheduledAt. A change made with this client shows right away, and the events of the user's other devices keep it up to date. queryScheduledMessages loads the ones this device does not know yet.