From f8ae0540a062e6346baf9fbf0481f769fb23a120 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 4 Sep 2025 11:07:12 -0500 Subject: Provide geo-gated users optional GPS fallback for precise location data (#8973) --- src/storage/schema.ts | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/storage') diff --git a/src/storage/schema.ts b/src/storage/schema.ts index a3f2336cf..d562d9fae 100644 --- a/src/storage/schema.ts +++ b/src/storage/schema.ts @@ -7,11 +7,32 @@ export type Device = { fontScale: '-2' | '-1' | '0' | '1' | '2' fontFamily: 'system' | 'theme' lastNuxDialog: string | undefined + + /** + * Geolocation config, fetched from the IP service. This previously did + * double duty as the "status" for geolocation state, but that has since + * moved here to the client. + */ geolocation?: { countryCode: string | undefined - isAgeRestrictedGeo: boolean | undefined - isAgeBlockedGeo: boolean | undefined + regionCode: string | undefined + ageRestrictedGeos: { + countryCode: string + regionCode: string | undefined + }[] + ageBlockedGeos: { + countryCode: string + regionCode: string | undefined + }[] + } + /** + * The GPS-based geolocation, if the user has granted permission. + */ + deviceGeolocation?: { + countryCode: string | undefined + regionCode: string | undefined } + trendingBetaEnabled: boolean devMode: boolean demoMode: boolean -- cgit 1.4.1