Cleanup gates (#4170)

* Unlaunch disable_poll_on_discover_v2

* Rm unused gates

* Unlaunch autoexpand_suggestions_on_profile_follow_v2

* Launch disable_min_shell_on_foregrounding_v3
This commit is contained in:
dan 2024-05-22 18:19:07 +01:00 committed by GitHub
parent 3ca41e4efb
commit e6e7027d01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 30 deletions

View file

@ -10,9 +10,8 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useGate} from '#/lib/statsig/statsig'
import {logger} from '#/logger'
import {isIOS, isWeb} from '#/platform/detection'
import {isIOS} from '#/platform/detection'
import {Shadow} from '#/state/cache/types'
import {useModalControls} from '#/state/modals'
import {
@ -81,7 +80,6 @@ let ProfileHeaderStandard = ({
})
}, [track, openModal, profile])
const gate = useGate()
const onPressFollow = () => {
requireAuth(async () => {
try {
@ -95,9 +93,6 @@ let ProfileHeaderStandard = ({
)}`,
),
)
if (isWeb && gate('autoexpand_suggestions_on_profile_follow_v2')) {
setShowSuggestedFollows(true)
}
} catch (e: any) {
if (e?.name !== 'AbortError') {
logger.error('Failed to follow', {message: String(e)})