about summary refs log tree commit diff
path: root/src/lib
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/lib
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/lib')
-rw-r--r--src/lib/moderation/useReportOptions.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/moderation/useReportOptions.ts b/src/lib/moderation/useReportOptions.ts
index a22386b99..c96f302a6 100644
--- a/src/lib/moderation/useReportOptions.ts
+++ b/src/lib/moderation/useReportOptions.ts
@@ -15,6 +15,7 @@ interface ReportOptions {
   list: ReportOption[]
   feedgen: ReportOption[]
   other: ReportOption[]
+  message: ReportOption[]
 }
 
 export function useReportOptions(): ReportOptions {
@@ -72,6 +73,19 @@ export function useReportOptions(): ReportOptions {
         },
         ...common,
       ],
+      message: [
+        {
+          reason: ComAtprotoModerationDefs.REASONSPAM,
+          title: _(msg`Spam`),
+          description: _(msg`Excessive or unwanted messages`),
+        },
+        {
+          reason: ComAtprotoModerationDefs.REASONSEXUAL,
+          title: _(msg`Unwanted Sexual Content`),
+          description: _(msg`Unwanted sexual content`),
+        },
+        ...common,
+      ],
       list: [
         {
           reason: ComAtprotoModerationDefs.REASONVIOLATION,