pinMessageInConversation
abstract fun pinMessageInConversation( conversation: IRainbowConversation, message: IMMessage, listener: RainbowListener<PinMessage, Unit>? = null)
Pins a given message in a specific conversation.
This method allows pinning an IMMessage within the provided IRainbowConversation. Pinning a message can highlight important messages in a conversation for easy reference. Upon successful pinning, the listener will receive the pinned PinMessage object.
Parameters
conversation
The IRainbowConversation in which the message will be pinned.
message
The IMMessage that will be pinned.
listener
An optional callback of type RainbowListener<PinMessage, Unit> that is invoked upon completion of the operation. If not required, set to null.