unpinMessageInConversation

abstract suspend fun unpinMessageInConversation(conversation: IRainbowConversation, message: IMMessage): RainbowResult<Unit>

Unpins a previously pinned message from a conversation.

This removes the pin marker from the given message in the specified conversation. All participants will see that the message is no longer pinned.

Only participants with sufficient permissions can unpin a message:

  • In 1:1 conversations, both users can unpin.

  • In room conversations, only organizers can unpin messages.

Return

A RainbowResult with Unit if successful, or a com.ale.infra.rest.listeners.Failure if the operation fails.

Parameters

conversation

The conversation containing the pinned message.

message

The message to unpin.