Package 

Class PinnedMessageListController


  • 
    public final class PinnedMessageListController
    
                        

    Controller 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.

    • Constructor Detail

      • PinnedMessageListController

        PinnedMessageListController(String cid, ChannelClient channelClient)
        Parameters:
        cid - The full channel ID.
        channelClient - The ChannelClient (instantiated for the given cid).
    • Method Detail

      • load

         final Unit load()

        Loads the initial list of pinned messages.

      • loadMore

         final Unit loadMore()

        Loads more pinned messages when requested. If the end of the list has been reached, or loading is already in progress, the request will be ignored.