Compare commits
2 Commits
280a7eaac2
...
0a05cf864c
Author | SHA1 | Date | |
---|---|---|---|
0a05cf864c | |||
47e0c5a8cc |
@ -55,7 +55,7 @@ export function Note(props: NoteProps) {
|
||||
if (setSeenAtInView) {
|
||||
timeout = setTimeout(() => {
|
||||
Relay.setEventMetadata(ev.id, { seen_at: Math.round(Date.now() / 1000) });
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
}
|
||||
return () => clearTimeout(timeout);
|
||||
}, [setSeenAtInView]);
|
||||
@ -87,8 +87,8 @@ export function Note(props: NoteProps) {
|
||||
<NoteFooter ev={ev} replyCount={props.threadChains?.get(chainKey(ev))?.length} />
|
||||
</div>
|
||||
)}
|
||||
<div ref={setSeenAtRef} />
|
||||
</div>
|
||||
<div ref={setSeenAtRef} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user