about summary refs log tree commit diff
path: root/src/components/ReportDialog
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-10 17:52:21 +0100
committerGitHub <noreply@github.com>2024-05-10 17:52:21 +0100
commitab21aafc281c04c223828b3a2436b02a98115bc7 (patch)
tree1035caa15b2b01f77297992d7e9dd093964c6218 /src/components/ReportDialog
parent7370bebf072c345c8e25974a694595f32f1bb4ca (diff)
downloadvoidsky-ab21aafc281c04c223828b3a2436b02a98115bc7.tar.zst
[🐴] Report message dialog (#3941)
* message report dialog

* report chat prompt

* typo

* 100% height sheet on android

* messages-specific report options

* restore unwanted sexual content

* chat -> conversation
Diffstat (limited to 'src/components/ReportDialog')
-rw-r--r--src/components/ReportDialog/SelectReportOptionView.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/ReportDialog/SelectReportOptionView.tsx b/src/components/ReportDialog/SelectReportOptionView.tsx
index 8219b2095..da3c43440 100644
--- a/src/components/ReportDialog/SelectReportOptionView.tsx
+++ b/src/components/ReportDialog/SelectReportOptionView.tsx
@@ -25,9 +25,12 @@ import {SquareArrowTopRight_Stroke2_Corner0_Rounded as SquareArrowTopRight} from
 import {Text} from '#/components/Typography'
 import {ReportDialogProps} from './types'
 
+type ParamsWithMessages = ReportDialogProps['params'] | {type: 'message'}
+
 export function SelectReportOptionView({
   ...props
-}: ReportDialogProps & {
+}: {
+  params: ParamsWithMessages
   labelers: AppBskyLabelerDefs.LabelerViewDetailed[]
   onSelectReportOption: (reportOption: ReportOption) => void
   goBack: () => void
@@ -54,6 +57,9 @@ export function SelectReportOptionView({
     } else if (props.params.type === 'feedgen') {
       title = _(msg`Report this feed`)
       description = _(msg`Why should this feed be reviewed?`)
+    } else if (props.params.type === 'message') {
+      title = _(msg`Report this message`)
+      description = _(msg`Why should this message be reviewed?`)
     }
 
     return {