get Pinned Messages In Conversation
abstract suspend fun getPinnedMessagesInConversation(conversation: IRainbowConversation): RainbowResult<List<PinMessage>>
Retrieves all pinned messages in a conversation.
This method returns the list of messages that have been pinned by participants in the specified conversation. If pinned messages haven't been loaded yet, a request will be made to the server. Once retrieved, the list is stored locally and kept up to date.
The result is a list of PinMessage objects representing each pinned message.
Return
A RainbowResult containing the list of PinMessage if successful, or a com.ale.infra.rest.listeners.Failure if the operation fails.
Parameters
conversation
The conversation from which to fetch pinned messages.