Send seen without cleanup
This commit is contained in:
@@ -480,16 +480,11 @@ let VideoItem = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (active) {
|
if (active) {
|
||||||
const to = setTimeout(() => {
|
sendInteraction({
|
||||||
sendInteraction({
|
item: post.uri,
|
||||||
item: post.uri,
|
event: 'app.bsky.feed.defs#interactionSeen',
|
||||||
event: 'app.bsky.feed.defs#interactionSeen',
|
feedContext,
|
||||||
feedContext,
|
})
|
||||||
})
|
|
||||||
}, 1000)
|
|
||||||
return () => {
|
|
||||||
clearTimeout(to)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, [active, post.uri, feedContext, sendInteraction])
|
}, [active, post.uri, feedContext, sendInteraction])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user