gate by testflight

This commit is contained in:
Hailey
2024-06-12 11:35:03 -07:00
parent 6b5ce0e192
commit 13dae9bc0d
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ import {
useLoggedOutViewControls,
} from '#/state/shell/logged-out'
import {useSetMinimalShellMode} from '#/state/shell/minimal-mode'
import {IS_DEV, IS_TESTFLIGHT} from 'lib/app-info'
import {NavigationProp} from 'lib/routes/types'
import {useUsedStarterPack} from 'state/preferences/starter-pack'
import {ErrorBoundary} from '#/view/com/util/ErrorBoundary'
@@ -47,7 +48,7 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) {
? requestedAccountSwitchTo === 'new'
? ScreenState.S_CreateAccount
: ScreenState.S_Login
: usedStarterPack?.uri
: usedStarterPack?.uri && (IS_TESTFLIGHT || IS_DEV)
? ScreenState.S_StarterPack
: ScreenState.S_LoginOrCreateAccount,
)
+3 -1
View File
@@ -27,6 +27,7 @@ import {useAgent, useSession} from '#/state/session'
import {useSetDrawerSwipeDisabled, useSetMinimalShellMode} from '#/state/shell'
import {useComposerControls} from '#/state/shell/composer'
import {useAnalytics} from 'lib/analytics/analytics'
import {IS_DEV, IS_TESTFLIGHT} from 'lib/app-info'
import {useSetTitle} from 'lib/hooks/useSetTitle'
import {ComposeIcon2} from 'lib/icons'
import {CommonNavigatorParams, NativeStackScreenProps} from 'lib/routes/types'
@@ -199,7 +200,8 @@ function ProfileScreenLoaded({
const showLikesTab = isMe
const showFeedsTab = isMe || (profile.associated?.feedgens || 0) > 0
const showStarterPacksTab =
isMe || !!starterPacksQuery.data?.pages?.[0].starterPacks.length
(isMe || !!starterPacksQuery.data?.pages?.[0].starterPacks.length) &&
(IS_TESTFLIGHT || IS_DEV)
const showListsTab =
hasSession && (isMe || (profile.associated?.lists || 0) > 0)