about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-08-08 12:14:15 -0500
committerGitHub <noreply@github.com>2024-08-08 18:14:15 +0100
commita0756c53be7991de1b2bd0c536c25e0d5995c992 (patch)
tree276c7a42fab95ecc0dfa7db125b2a67d3feb21d7
parent3ea8eb60134c9e7b48290f5ccc9e0c87ff779e23 (diff)
downloadvoidsky-a0756c53be7991de1b2bd0c536c25e0d5995c992.tar.zst
Remove show_avi_follow_button (#4900)
-rw-r--r--src/lib/statsig/gates.ts1
-rw-r--r--src/view/com/posts/AviFollowButton.tsx4
2 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts
index c2b601c3c..5ae6bd530 100644
--- a/src/lib/statsig/gates.ts
+++ b/src/lib/statsig/gates.ts
@@ -4,7 +4,6 @@ export type Gate =
   | 'new_user_guided_tour'
   | 'onboarding_minimum_interests'
   | 'session_withproxy_fix'
-  | 'show_avi_follow_button'
   | 'show_follow_back_label_v2'
   | 'suggested_feeds_interstitial'
   | 'video_debug'
diff --git a/src/view/com/posts/AviFollowButton.tsx b/src/view/com/posts/AviFollowButton.tsx
index f7141ee42..00428cbe6 100644
--- a/src/view/com/posts/AviFollowButton.tsx
+++ b/src/view/com/posts/AviFollowButton.tsx
@@ -7,7 +7,6 @@ import {useNavigation} from '@react-navigation/native'
 
 import {createHitslop} from '#/lib/constants'
 import {NavigationProp} from '#/lib/routes/types'
-import {useGate} from '#/lib/statsig/statsig'
 import {sanitizeDisplayName} from '#/lib/strings/display-names'
 import {useProfileShadow} from '#/state/cache/profile-shadow'
 import {useSession} from '#/state/session'
@@ -37,7 +36,6 @@ export function AviFollowButton({
     profile: profile,
     logContext: 'AvatarButton',
   })
-  const gate = useGate()
   const {currentAccount, hasSession} = useSession()
   const navigation = useNavigation<NavigationProp>()
 
@@ -80,7 +78,7 @@ export function AviFollowButton({
     },
   ]
 
-  return hasSession && gate('show_avi_follow_button') ? (
+  return hasSession ? (
     <View style={a.relative}>
       {children}