private fun updateMessagePin(message: Message) { val updateCall = if (message.pinned) { chatClient.unpinMessage(message) } else { chatClient.pinMessage(message = message, expirationDate = null) }  updateCall.enqueue() }
Pins or unpins the message from the current channel based on its state.