flagMessage
fun flagMessage(message: Message, reason: String?, customData: Map<String, String>, onResult: (Result<Flag>) -> Unit = {})
Flags the selected message.
Parameters
message
Message to be flagged.
reason
The reason for flagging the message.
customData
Additional data to send with the flag.
onResult
Handler that notifies the result of the flag action.