@Composable public fun ModeratedMessageDialog( message: Message, onDismissRequest: () -> Unit, onDialogOptionInteraction: (message: Message, option: ModeratedMessageOption) -> Unit, modifier: Modifier = Modifier, moderatedMessageOptions: List<ModeratedMessageOption> = defaultMessageModerationOptions(), dialogTitle: @Composable () -> Unit = { DefaultModeratedMessageDialogTitle() }, dialogDescription: @Composable () -> Unit = { DefaultModeratedMessageDialogDescription() }, dialogOptions: @Composable () -> Unit = { DefaultModeratedDialogOptions( message = message, moderatedMessageOptions = moderatedMessageOptions, onDialogOptionInteraction = onDialogOptionInteraction, onDismissRequest = onDismissRequest ) }, ) { Dialog(onDismissRequest = onDismissRequest) { Column( modifier = modifier, horizontalAlignment = Alignment.CenterHorizontally ) { dialogTitle()  dialogDescription()  dialogOptions() } } }
Dialog that is shown when user clicks or long taps on a moderated message. Gives the user the ability to either send the message again, edit it and then send it or to delete it.