-
public final class PinnedMessageListControllerController responsible for handling pinned message list state. It acts as a central place for business logic and state management required to show the pinned messages in a channel. The pinned messages are presented in a descending order based on Message.pinnedAt.
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<PinnedMessageListState>stateprivate final SharedFlow<Unit>errorEvents
-
Constructor Summary
Constructors Constructor Description PinnedMessageListController(String cid, ChannelClient channelClient)
-
Method Summary
Modifier and Type Method Description final StateFlow<PinnedMessageListState>getState()final SharedFlow<Unit>getErrorEvents()final Unitload()Loads the initial list of pinned messages. final UnitloadMore()Loads more pinned messages when requested. -
-
Constructor Detail
-
PinnedMessageListController
PinnedMessageListController(String cid, ChannelClient channelClient)
- Parameters:
cid- The full channel ID.channelClient- The ChannelClient (instantiated for the given cid).
-
-
Method Detail
-
getState
final StateFlow<PinnedMessageListState> getState()
-
getErrorEvents
final SharedFlow<Unit> getErrorEvents()
-
-
-
-