@Suppress("ConvertArgumentToSet") public fun flagMessage(message: Message) { messageActions = messageActions - messageActions.filterIsInstance<Flag>() removeOverlay()  chatClient.flagMessage(message.id).enqueue() }
Removes the flag actions from our [messageActions], as well as the overlay, before flagging  the selected message.