about summary refs log tree commit diff
path: root/src/state/persisted/schema.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-05 12:21:34 -0700
committerGitHub <noreply@github.com>2024-08-05 12:21:34 -0700
commit18b423396b75d8b4348a434412d0da1f38230717 (patch)
tree3a3032668f498bb2d17fbee7514493d4f82cc6b3 /src/state/persisted/schema.ts
parentfb278384c64f55e5037275a23f4bd7af91dc7274 (diff)
downloadvoidsky-18b423396b75d8b4348a434412d0da1f38230717.tar.zst
Add `PlatformInfo` module (#4877)
Diffstat (limited to 'src/state/persisted/schema.ts')
-rw-r--r--src/state/persisted/schema.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts
index 88fc370a6..399a7e793 100644
--- a/src/state/persisted/schema.ts
+++ b/src/state/persisted/schema.ts
@@ -1,6 +1,7 @@
 import {z} from 'zod'
 
-import {deviceLocales, prefersReducedMotion} from '#/platform/detection'
+import {deviceLocales} from '#/platform/detection'
+import {PlatformInfo} from '../../../modules/expo-bluesky-swiss-army'
 
 const externalEmbedOptions = ['show', 'hide'] as const
 
@@ -128,7 +129,7 @@ export const defaults: Schema = {
   lastSelectedHomeFeed: undefined,
   pdsAddressHistory: [],
   disableHaptics: false,
-  disableAutoplay: prefersReducedMotion,
+  disableAutoplay: PlatformInfo.getIsReducedMotionEnabled(),
   kawaii: false,
   hasCheckedForStarterPack: false,
 }