Revert "Send beta user state with AppView requests (#11474)" (#11510)

This commit is contained in:
DS Boyce
2026-08-24 11:40:15 -07:00
committed by GitHub
parent 6f46927c28
commit 6b35d3de1c
7 changed files with 22 additions and 159 deletions
@@ -5,7 +5,6 @@ import {type NativeStackScreenProps} from '@react-navigation/native-stack'
import {type CommonNavigatorParams} from '#/lib/routes/types'
import {logger} from '#/logger'
import {setCachedIsBetaUser} from '#/state/preferences/beta-user-cache'
import {
usePreferencesQuery,
useSetIsBetaUserMutation,
@@ -26,6 +25,7 @@ import {Text} from '#/components/Typography'
import {features, useAnalytics} from '#/analytics'
import {getTargetedFeatures} from '#/analytics/features'
import {IS_WEB} from '#/env'
import {account} from '#/storage'
type Props = NativeStackScreenProps<
CommonNavigatorParams,
@@ -74,7 +74,7 @@ export function BetaFeaturesSettingsScreen({}: Props) {
* account-specific.
*/
if (currentAccount) {
setCachedIsBetaUser(currentAccount.did, next)
account.set([currentAccount.did, 'isBetaUser'], next)
}
ax.metric('betaFeatures:toggle', {
enabled: next,