PinnedMessageListViewModel

ViewModel responsible for providing pinned messages in the channel. Pinned messages are provided in a descending order based on Message.pinnedAt.

Parameters

controller

the PinnedMessageListController handling the business logic and the state management for the pinned message list.

Constructors

Link copied to clipboard
constructor(controller: PinnedMessageListController)

Properties

Link copied to clipboard
val errorEvents: SharedFlow<Unit>

One shot error events when a query fails.

Link copied to clipboard

The current pinned messages' state.

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
fun loadMore()

Loads more data when requested.