From 4f8cfe2b32d0cbfd9a9f4950df3a1824aea0fb87 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 19 Jan 2025 23:09:14 +0000 Subject: [PATCH] Send seen without cleanup --- src/screens/VideoFeed/index.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index 9cdbdf6177..82bce9df07 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -480,16 +480,11 @@ let VideoItem = ({ useEffect(() => { if (active) { - const to = setTimeout(() => { - sendInteraction({ - item: post.uri, - event: 'app.bsky.feed.defs#interactionSeen', - feedContext, - }) - }, 1000) - return () => { - clearTimeout(to) - } + sendInteraction({ + item: post.uri, + event: 'app.bsky.feed.defs#interactionSeen', + feedContext, + }) } }, [active, post.uri, feedContext, sendInteraction])