about summary refs log tree commit diff
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-08-29 20:09:11 +0100
committerGitHub <noreply@github.com>2024-08-29 20:09:11 +0100
commite51eb391df754d02f006220eef177ef8c0cd0795 (patch)
treed0f5eb0767b7ef384406894714e20be4ca6eb2d6
parent9ebc2785e4dd51d2e8aa33d3d4365dede4280301 (diff)
downloadvoidsky-e51eb391df754d02f006220eef177ef8c0cd0795.tar.zst
Enable show_follow_back_label_v2 (#5022)
-rw-r--r--src/lib/statsig/gates.ts1
-rw-r--r--src/view/com/post-thread/PostThreadFollowBtn.tsx4
2 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts
index 39594bdbf..d4478477b 100644
--- a/src/lib/statsig/gates.ts
+++ b/src/lib/statsig/gates.ts
@@ -3,7 +3,6 @@ export type Gate =
   | 'debug_show_feedcontext'
   | 'fixed_bottom_bar'
   | 'onboarding_minimum_interests'
-  | 'show_follow_back_label_v2'
   | 'suggested_feeds_interstitial'
   | 'video_debug'
   | 'videos'
diff --git a/src/view/com/post-thread/PostThreadFollowBtn.tsx b/src/view/com/post-thread/PostThreadFollowBtn.tsx
index 6b6316eec..914ee3b66 100644
--- a/src/view/com/post-thread/PostThreadFollowBtn.tsx
+++ b/src/view/com/post-thread/PostThreadFollowBtn.tsx
@@ -6,7 +6,6 @@ import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 import {useNavigation} from '@react-navigation/native'
 
-import {useGate} from '#/lib/statsig/statsig'
 import {logger} from '#/logger'
 import {track} from 'lib/analytics/analytics'
 import {usePalette} from 'lib/hooks/usePalette'
@@ -48,7 +47,6 @@ function PostThreadFollowBtnLoaded({
     'PostThreadItem',
   )
   const requireAuth = useRequireAuth()
-  const gate = useGate()
 
   const isFollowing = !!profile.viewer?.following
   const isFollowedBy = !!profile.viewer?.followedBy
@@ -140,7 +138,7 @@ function PostThreadFollowBtnLoaded({
             style={[!isFollowing ? palInverted.text : pal.text, s.bold]}
             numberOfLines={1}>
             {!isFollowing ? (
-              isFollowedBy && gate('show_follow_back_label_v2') ? (
+              isFollowedBy ? (
                 <Trans>Follow Back</Trans>
               ) : (
                 <Trans>Follow</Trans>