ThreadState

interface ThreadState

State container with reactive data of a thread.

Properties

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

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

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

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

Link copied to clipboard

Whether the loaded replies come from a jump to a reply (and the pages loaded from it), rather than from loading the newest replies. While it is true and endOfNewerMessages is false, new replies are held back until the newest replies are loaded again.

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

If we are currently loading 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 newestInThread: StateFlow<Message?>

The newest 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 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.