Skip to content

Commit

Permalink
Remove show_avi_follow_button (#4900)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Aug 8, 2024
1 parent 3ea8eb6 commit a0756c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/lib/statsig/gates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 1 addition & 3 deletions src/view/com/posts/AviFollowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -37,7 +36,6 @@ export function AviFollowButton({
profile: profile,
logContext: 'AvatarButton',
})
const gate = useGate()
const {currentAccount, hasSession} = useSession()
const navigation = useNavigation<NavigationProp>()

Expand Down Expand Up @@ -80,7 +78,7 @@ export function AviFollowButton({
},
]

return hasSession && gate('show_avi_follow_button') ? (
return hasSession ? (
<View style={a.relative}>
{children}

Expand Down

0 comments on commit a0756c5

Please sign in to comment.