ThreadState

interface ThreadState

State container with reactive data of a thread.

Properties

Link copied to clipboard
abstract val endOfOlderMessages: StateFlow<Boolean>

If we've reached the earliest point in this thread.

Link copied to clipboard
abstract val loading: StateFlow<Boolean>

If we are currently loading messages.

Link copied to clipboard
abstract val loadingOlderMessages: StateFlow<Boolean>

If we are currently loading older messages.

Link copied to clipboard
abstract val messages: StateFlow<List<Message>>

The sorted list of messages for this thread.

Link copied to clipboard
abstract val oldestInThread: StateFlow<Message?>

The oldest message available in this thread state. It's null when we haven't loaded any messages in thread yet.

Link copied to clipboard
abstract val parentId: String

The message id for the parent of this thread.