@JvmOverloads @Suppress("ConvertArgumentToSet") public fun deleteMessage(message: Message, hard: Boolean = false) { messageActions = messageActions - messageActions.filterIsInstance<Delete>() removeOverlay()  chatClient.deleteMessage(message.id, hard).enqueue() }
Removes the delete actions from our [messageActions], as well as the overlay, before deleting the selected message.