Provide geo-gated users optional GPS fallback for precise location data (#8973)

This commit is contained in:
Eric Bailey
2025-09-04 11:07:12 -05:00
committed by GitHub
parent 625b4e61db
commit f8ae0540a0
31 changed files with 1076 additions and 299 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import {useNotificationsRegistration} from '#/lib/notifications/notifications'
import {isStateAtTabRoot} from '#/lib/routes/helpers'
import {isAndroid, isIOS} from '#/platform/detection'
import {useDialogFullyExpandedCountContext} from '#/state/dialogs'
import {useGeolocation} from '#/state/geolocation'
import {useGeolocationStatus} from '#/state/geolocation'
import {useSession} from '#/state/session'
import {
useIsDrawerOpen,
@@ -184,7 +184,7 @@ function ShellInner() {
export function Shell() {
const t = useTheme()
const {geolocation} = useGeolocation()
const {status: geolocation} = useGeolocationStatus()
const fullyExpandedCount = useDialogFullyExpandedCountContext()
useIntentHandler()
+2 -2
View File
@@ -9,7 +9,7 @@ import {useIntentHandler} from '#/lib/hooks/useIntentHandler'
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {type NavigationProp} from '#/lib/routes/types'
import {useGate} from '#/lib/statsig/statsig'
import {useGeolocation} from '#/state/geolocation'
import {useGeolocationStatus} from '#/state/geolocation'
import {useIsDrawerOpen, useSetDrawerOpen} from '#/state/shell'
import {useComposerKeyboardShortcut} from '#/state/shell/composer/useComposerKeyboardShortcut'
import {useCloseAllActiveElements} from '#/state/util'
@@ -142,7 +142,7 @@ function ShellInner() {
export function Shell() {
const t = useTheme()
const {geolocation} = useGeolocation()
const {status: geolocation} = useGeolocationStatus()
return (
<View style={[a.util_screen_outer, t.atoms.bg]}>
{geolocation?.isAgeBlockedGeo ? (