PinnedMessageListViewModel

ViewModel responsible for providing pinned messages in the channel. Pinned messages are provided in a descending order based on Message.pinnedAt. Can be bound to the view using PinnedMessageListViewModel.bindView function.

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

One shot error events when a query fails.

Link copied to clipboard

The current pinned messages' state.

Functions

Link copied to clipboard
fun loadMore()

Loads more data when requested.

Inherited functions

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

Binds PinnedMessageListView with PinnedMessageListViewModel, updating the view's state based on data provided by the ViewModel and propagating view events to the ViewModel as needed.

Link copied to clipboard