Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Only validate persisted data for existing users (#4465)

authored by

Eric Bailey and committed by
GitHub
7356763e 5dd195bc

+6
+6
src/state/persisted/store.ts
··· 13 13 export async function read(): Promise<Schema | undefined> { 14 14 const rawData = await AsyncStorage.getItem(BSKY_STORAGE) 15 15 const objData = rawData ? JSON.parse(rawData) : undefined 16 + 17 + // new user 18 + if (!objData) return undefined 19 + 20 + // existing user, validate 16 21 const parsed = schema.safeParse(objData) 22 + 17 23 if (parsed.success) { 18 24 return objData 19 25 } else {