Bluesky app fork with some witchin' additions 💫

Cleanup flags (#4891)

* Remove launched gates

* Remove disabled gates

authored by danabra.mov and committed by

GitHub f1031d10 1e3b2d6f

+5 -27
+2 -12
src/lib/notifications/notifications.ts
··· 5 5 6 6 import {logger} from '#/logger' 7 7 import {SessionAccount, useAgent, useSession} from '#/state/session' 8 - import {logEvent, useGate} from 'lib/statsig/statsig' 8 + import {logEvent} from 'lib/statsig/statsig' 9 9 import {devicePlatform, isAndroid, isNative} from 'platform/detection' 10 10 import BackgroundNotificationHandler from '../../../modules/expo-background-notification-handler' 11 11 ··· 86 86 } 87 87 88 88 export function useRequestNotificationsPermission() { 89 - const gate = useGate() 90 89 const {currentAccount} = useSession() 91 90 const agent = useAgent() 92 91 ··· 102 101 ) { 103 102 return 104 103 } 105 - if ( 106 - context === 'StartOnboarding' && 107 - gate('request_notifications_permission_after_onboarding_v2') 108 - ) { 109 - return 110 - } 111 - if ( 112 - context === 'AfterOnboarding' && 113 - !gate('request_notifications_permission_after_onboarding_v2') 114 - ) { 104 + if (context === 'AfterOnboarding') { 115 105 return 116 106 } 117 107 if (context === 'Home' && !currentAccount) {
-3
src/lib/statsig/gates.ts
··· 6 6 | 'new_user_guided_tour' 7 7 | 'new_user_progress_guide' 8 8 | 'onboarding_minimum_interests' 9 - | 'request_notifications_permission_after_onboarding_v2' 10 9 | 'session_withproxy_fix' 11 10 | 'show_avi_follow_button' 12 11 | 'show_follow_back_label_v2' 13 12 | 'suggested_feeds_interstitial' 14 - | 'suggested_follows_interstitial' 15 13 | 'ungroup_follow_backs' 16 14 | 'video_debug' 17 15 | 'videos' 18 - | 'small_avi_thumb'
+1 -2
src/view/com/posts/Feed.tsx
··· 349 349 const shouldShow = 350 350 (interstitial.type === feedInterstitialType && 351 351 gate('suggested_feeds_interstitial')) || 352 - (interstitial.type === followInterstitialType && 353 - gate('suggested_follows_interstitial')) || 352 + interstitial.type === followInterstitialType || 354 353 interstitial.type === progressGuideInterstitialType 355 354 356 355 if (shouldShow) {
+2 -10
src/view/com/util/UserAvatar.tsx
··· 8 8 import {useLingui} from '@lingui/react' 9 9 import {useQueryClient} from '@tanstack/react-query' 10 10 11 - import {useGate} from '#/lib/statsig/statsig' 12 11 import {logger} from '#/logger' 13 12 import {usePalette} from 'lib/hooks/usePalette' 14 13 import { ··· 179 178 const pal = usePalette('default') 180 179 const backgroundColor = pal.colors.backgroundLight 181 180 const finalShape = overrideShape ?? (type === 'user' ? 'circle' : 'square') 182 - const gate = useGate() 183 181 184 182 const aviStyle = useMemo(() => { 185 183 if (finalShape === 'square') { ··· 223 221 style={aviStyle} 224 222 resizeMode="cover" 225 223 source={{ 226 - uri: hackModifyThumbnailPath( 227 - avatar, 228 - size < 90 && gate('small_avi_thumb'), 229 - ), 224 + uri: hackModifyThumbnailPath(avatar, size < 90), 230 225 }} 231 226 blurRadius={moderation?.blur ? BLUR_AMOUNT : 0} 232 227 /> ··· 236 231 style={aviStyle} 237 232 contentFit="cover" 238 233 source={{ 239 - uri: hackModifyThumbnailPath( 240 - avatar, 241 - size < 90 && gate('small_avi_thumb'), 242 - ), 234 + uri: hackModifyThumbnailPath(avatar, size < 90), 243 235 }} 244 236 blurRadius={moderation?.blur ? BLUR_AMOUNT : 0} 245 237 />