FlagMessage
data class FlagMessage(val message: Message, val reason: String?, val customData: Map<String, String>, val resultHandler: (Result<Flag>) -> Unit = { }) : MessageListViewModel.Event
When the user flags a message.
Parameters
message
The message to be flagged.
resultHandler
Lambda function that handles the result of the operation. e.g. if the message was successfully flagged or not.