Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

ensure we get navigated away to starter pack when signed in (#4640)

* ensure we get navigated away to starter pack when signed in

* clean

authored by

Hailey and committed by
GitHub
d11b5527 e5b9f130

+17
+17
src/view/screens/Home.tsx
··· 33 33 type Props = NativeStackScreenProps<HomeTabNavigatorParams, 'Home' | 'Start'> 34 34 export function HomeScreen(props: Props) { 35 35 const {data: preferences} = usePreferencesQuery() 36 + const {currentAccount} = useSession() 36 37 const {data: pinnedFeedInfos, isLoading: isPinnedFeedsLoading} = 37 38 usePinnedFeedsInfos() 39 + 40 + React.useEffect(() => { 41 + const params = props.route.params 42 + if ( 43 + currentAccount && 44 + props.route.name === 'Start' && 45 + params?.name && 46 + params?.rkey 47 + ) { 48 + props.navigation.navigate('StarterPack', { 49 + rkey: params.rkey, 50 + name: params.name, 51 + }) 52 + } 53 + }, [currentAccount, props.navigation, props.route.name, props.route.params]) 54 + 38 55 if (preferences && pinnedFeedInfos && !isPinnedFeedsLoading) { 39 56 return ( 40 57 <HomeScreenReady