mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Auto-expand follow suggestions on web (#3432)

authored by danabra.mov and committed by

GitHub 1150007d ed5647d4

+12
+4
src/lib/statsig/statsig.tsx
··· 78 78 return { 79 79 userID, 80 80 platform: Platform.OS, 81 + custom: { 82 + // Need to specify here too for gating. 83 + platform: Platform.OS, 84 + }, 81 85 } 82 86 } 83 87
+8
src/screens/Profile/Header/ProfileHeaderStandard.tsx
··· 10 10 import {msg, Trans} from '@lingui/macro' 11 11 import {useLingui} from '@lingui/react' 12 12 13 + import {useGate} from '#/lib/statsig/statsig' 13 14 import {logger} from '#/logger' 15 + import {isWeb} from '#/platform/detection' 14 16 import {Shadow} from '#/state/cache/types' 15 17 import {useModalControls} from '#/state/modals' 16 18 import { ··· 78 80 }) 79 81 }, [track, openModal, profile]) 80 82 83 + const autoExpandSuggestionsOnProfileFollow = useGate( 84 + 'autoexpand_suggestions_on_profile_follow', 85 + ) 81 86 const onPressFollow = () => { 82 87 requireAuth(async () => { 83 88 try { ··· 91 96 )}`, 92 97 ), 93 98 ) 99 + if (isWeb && autoExpandSuggestionsOnProfileFollow) { 100 + setShowSuggestedFollows(true) 101 + } 94 102 } catch (e: any) { 95 103 if (e?.name !== 'AbortError') { 96 104 logger.error('Failed to follow', {message: String(e)})