unpinMessageInConversation

abstract fun unpinMessageInConversation(conversation: IRainbowConversation, message: IMMessage, listener: RainbowListener<Unit, Unit>? = null)

Unpins a given pinned message in a specific conversation.

This method removes the pin from a previously pinned IMMessage within the specified IRainbowConversation. Once the message is unpinned, it will no longer appear as highlighted in the conversation. Upon successful unpinning, the listener will be notified.

Parameters

conversation

The IRainbowConversation from which the message will be unpinned.

message

The IMMessage that will be unpinned.

listener

An optional callback of type RainbowListener that is invoked upon completion of the operation. If not required, set to null.