From 2a453cd9cac811da0eb7c802489c6e4bcfe4bd78 Mon Sep 17 00:00:00 2001
From: hailey <me@haileyok.com>
Date: Fri, 30 May 2025 12:13:44 -0700
Subject: invert flag for sending to statsig (#8431)

---
 src/components/moderation/ReportDialog/index.tsx | 36 +++++++++++++++---------
 1 file changed, 22 insertions(+), 14 deletions(-)

(limited to 'src/components/moderation/ReportDialog/index.tsx')

diff --git a/src/components/moderation/ReportDialog/index.tsx b/src/components/moderation/ReportDialog/index.tsx
index c785e8c5e..acab1d21f 100644
--- a/src/components/moderation/ReportDialog/index.tsx
+++ b/src/components/moderation/ReportDialog/index.tsx
@@ -1,7 +1,7 @@
 import React from 'react'
 import {Pressable, View} from 'react-native'
-import {ScrollView} from 'react-native-gesture-handler'
-import {AppBskyLabelerDefs} from '@atproto/api'
+import {type ScrollView} from 'react-native-gesture-handler'
+import {type AppBskyLabelerDefs} from '@atproto/api'
 import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
@@ -33,9 +33,9 @@ import {useSubmitReportMutation} from './action'
 import {DMCA_LINK} from './const'
 import {useCopyForSubject} from './copy'
 import {initialState, reducer} from './state'
-import {ReportDialogProps, ReportSubject} from './types'
+import {type ReportDialogProps, type ReportSubject} from './types'
 import {parseReportSubject} from './utils/parseReportSubject'
-import {ReportOption, useReportOptions} from './utils/useReportOptions'
+import {type ReportOption, useReportOptions} from './utils/useReportOptions'
 
 export {useDialogControl as useReportDialogControl} from '#/components/Dialog'
 
@@ -51,7 +51,7 @@ export function ReportDialog(
     [props.subject],
   )
   const onClose = React.useCallback(() => {
-    logger.metric('reportDialog:close', {})
+    logger.metric('reportDialog:close', {}, {statsig: false})
   }, [])
   return (
     <Dialog.Outer control={props.control} onClose={onClose}>
@@ -155,17 +155,21 @@ function Inner(props: ReportDialogProps) {
         }),
       )
       setSuccess(true)
-      logger.metric('reportDialog:success', {
-        reason: state.selectedOption?.reason!,
-        labeler: state.selectedLabeler?.creator.handle!,
-        details: !!state.details,
-      })
+      logger.metric(
+        'reportDialog:success',
+        {
+          reason: state.selectedOption?.reason!,
+          labeler: state.selectedLabeler?.creator.handle!,
+          details: !!state.details,
+        },
+        {statsig: false},
+      )
       // give time for user feedback
       setTimeout(() => {
         props.control.close()
       }, 1e3)
     } catch (e: any) {
-      logger.metric('reportDialog:failure', {})
+      logger.metric('reportDialog:failure', {}, {statsig: false})
       logger.error(e, {
         source: 'ReportDialog',
       })
@@ -179,9 +183,13 @@ function Inner(props: ReportDialogProps) {
   }, [_, submitReport, state, dispatch, props, setPending, setSuccess])
 
   React.useEffect(() => {
-    logger.metric('reportDialog:open', {
-      subjectType: props.subject.type,
-    })
+    logger.metric(
+      'reportDialog:open',
+      {
+        subjectType: props.subject.type,
+      },
+      {statsig: false},
+    )
   }, [props.subject])
 
   return (
-- 
cgit 1.4.1

