Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Ungate profile scroll fix (#3655)

authored by

dan and committed by
GitHub
fe9b3f04 49b5d420

+4 -21
-1
src/lib/statsig/gates.ts
··· 5 5 | 'disable_poll_on_discover_v2' 6 6 | 'hide_vertical_scroll_indicators' 7 7 | 'new_gif_player' 8 - | 'new_profile_scroll_component' 9 8 | 'show_follow_back_label_v2' 10 9 | 'start_session_with_following_v2' 11 10 | 'use_new_suggestions_endpoint'
+4 -20
src/view/screens/Profile.tsx
··· 25 25 import {useSetTitle} from 'lib/hooks/useSetTitle' 26 26 import {ComposeIcon2} from 'lib/icons' 27 27 import {CommonNavigatorParams, NativeStackScreenProps} from 'lib/routes/types' 28 - import {useGate} from 'lib/statsig/statsig' 29 28 import {combinedDisplayName} from 'lib/strings/display-names' 30 29 import {isInvalidHandle} from 'lib/strings/handles' 31 30 import {colors, s} from 'lib/styles' ··· 143 142 const setMinimalShellMode = useSetMinimalShellMode() 144 143 const {openComposer} = useComposerControls() 145 144 const {screen, track} = useAnalytics() 146 - const gate = useGate() 147 145 const { 148 146 data: labelerInfo, 149 147 error: labelerError, ··· 317 315 // = 318 316 319 317 const renderHeader = React.useCallback(() => { 320 - if (gate('new_profile_scroll_component')) { 321 - return ( 322 - <ExpoScrollForwarderView scrollViewTag={scrollViewTag}> 323 - <ProfileHeader 324 - profile={profile} 325 - labeler={labelerInfo} 326 - descriptionRT={hasDescription ? descriptionRT : null} 327 - moderationOpts={moderationOpts} 328 - hideBackButton={hideBackButton} 329 - isPlaceholderProfile={showPlaceholder} 330 - /> 331 - </ExpoScrollForwarderView> 332 - ) 333 - } else { 334 - return ( 318 + return ( 319 + <ExpoScrollForwarderView scrollViewTag={scrollViewTag}> 335 320 <ProfileHeader 336 321 profile={profile} 337 322 labeler={labelerInfo} ··· 340 325 hideBackButton={hideBackButton} 341 326 isPlaceholderProfile={showPlaceholder} 342 327 /> 343 - ) 344 - } 328 + </ExpoScrollForwarderView> 329 + ) 345 330 }, [ 346 - gate, 347 331 scrollViewTag, 348 332 profile, 349 333 labelerInfo,