change note seen timeout 2000 -> 1000

This commit is contained in:
Martti Malmi 2024-02-05 12:39:06 +02:00
parent 280a7eaac2
commit 47e0c5a8cc

View File

@ -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]);