fix video thumb cleanup (#6431)

This commit is contained in:
Samuel Newman
2024-11-17 14:56:15 +00:00
committed by GitHub
parent e9fe8d90ef
commit 8d1c93efc8
3 changed files with 17 additions and 10 deletions
+3 -1
View File
@@ -130,6 +130,7 @@ import {
ThreadDraft,
} from './state/composer'
import {NO_VIDEO, NoVideoState, processVideo, VideoState} from './state/video'
import {clearThumbnailCache} from './videos/VideoTranscodeBackdrop'
type CancelRef = {
onPressCancel: () => void
@@ -249,7 +250,8 @@ export const ComposePost = ({
const onClose = useCallback(() => {
closeComposer()
}, [closeComposer])
clearThumbnailCache(queryClient)
}, [closeComposer, queryClient])
const insets = useSafeAreaInsets()
const viewStyles = useMemo(