From 3443b42bfbc4a23c1d4a5d3a23c9d33f6e5b213d Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 18 Jan 2025 13:13:29 -0800 Subject: [PATCH] tweak feedback again --- src/screens/VideoFeed/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index 8858c186c7..b96f0bc0a5 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -405,18 +405,21 @@ function VideoItem({ }) { const postShadow = usePostShadow(post) const {width, height} = useSafeAreaFrame() - const {onItemSeen} = useFeedFeedbackContext() + const {sendInteraction} = useFeedFeedbackContext() useEffect(() => { let to: NodeJS.Timeout | null = null if (active && !to) { to = setTimeout(() => { - onItemSeen(post) + sendInteraction({ + item: post.uri, + event: 'app.bsky.feed.defs#interactionSeen', + }) }, 1000) } else if (!active && to) { clearTimeout(to) } - }, [active, post, onItemSeen]) + }, [active, post, sendInteraction]) return (