about summary refs log tree commit diff
path: root/src/screens/Profile/Header/ProfileHeaderStandard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/Profile/Header/ProfileHeaderStandard.tsx')
-rw-r--r--src/screens/Profile/Header/ProfileHeaderStandard.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx
index 420b54f49..d6c6ff7bd 100644
--- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx
+++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx
@@ -10,7 +10,9 @@ 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 {isWeb} from '#/platform/detection'
 import {Shadow} from '#/state/cache/types'
 import {useModalControls} from '#/state/modals'
 import {
@@ -78,6 +80,9 @@ let ProfileHeaderStandard = ({
     })
   }, [track, openModal, profile])
 
+  const autoExpandSuggestionsOnProfileFollow = useGate(
+    'autoexpand_suggestions_on_profile_follow',
+  )
   const onPressFollow = () => {
     requireAuth(async () => {
       try {
@@ -91,6 +96,9 @@ let ProfileHeaderStandard = ({
             )}`,
           ),
         )
+        if (isWeb && autoExpandSuggestionsOnProfileFollow) {
+          setShowSuggestedFollows(true)
+        }
       } catch (e: any) {
         if (e?.name !== 'AbortError') {
           logger.error('Failed to follow', {message: String(e)})