pin Message In Conversation
abstract suspend fun pinMessageInConversation(conversation: IRainbowConversation, message: IMMessage): RainbowResult<PinMessage>
Pins a message in a conversation.
Pins are shared markers in a conversation that highlight important messages for all participants. In 1:1 conversations, both users can pin messages. In room conversations, only organizers are allowed to pin.
Once pinned, the message will remain visible and accessible in the pinned section of the conversation.
Return
A RainbowResult containing the PinMessage object if the operation succeeds, or a com.ale.infra.rest.listeners.Failure if the message cannot be pinned.
Parameters
conversation
The conversation where the message should be pinned.
message
The message to pin.