change note seen timeout 2000 -> 1000
This commit is contained in:
@ -55,7 +55,7 @@ export function Note(props: NoteProps) {
|
|||||||
if (setSeenAtInView) {
|
if (setSeenAtInView) {
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
Relay.setEventMetadata(ev.id, { seen_at: Math.round(Date.now() / 1000) });
|
Relay.setEventMetadata(ev.id, { seen_at: Math.round(Date.now() / 1000) });
|
||||||
}, 2000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
}, [setSeenAtInView]);
|
}, [setSeenAtInView]);
|
||||||
|
Reference in New Issue
Block a user