Quiet some logs, fix a bug (#8404)

* Composer, 142k

* Log geolocation error at most once per session

* Clean thumb cache, 1.4m

* Quiet generic network errors

* Handle undefined notification payloads
This commit is contained in:
Eric Bailey
2025-05-27 13:25:41 -05:00
committed by GitHub
parent df2f62e94d
commit 342f820ec0
5 changed files with 45 additions and 13 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ export const ComposePost = ({
).uris[0]
try {
await whenAppViewReady(agent, postUri, res => {
const postedThread = res.data.thread
const postedThread = res?.data?.thread
return AppBskyFeedDefs.isThreadViewPost(postedThread)
})
} catch (waitErr: any) {
@@ -1,14 +1,14 @@
import {clearCache, createVideoThumbnail} from 'react-native-compressor'
import Animated, {FadeIn} from 'react-native-reanimated'
import {Image} from 'expo-image'
import {QueryClient, useQuery} from '@tanstack/react-query'
import {type QueryClient, useQuery} from '@tanstack/react-query'
import {atoms as a} from '#/alf'
export const RQKEY = 'video-thumbnail'
export function clearThumbnailCache(queryClient: QueryClient) {
clearCache()
clearCache().catch(() => {})
queryClient.resetQueries({queryKey: [RQKEY]})
}