Compare commits

...

2 Commits

Author SHA1 Message Date
0a05cf864c note layout fix
Some checks failed
continuous-integration/drone/push Build is failing
2024-02-05 23:31:26 +02:00
47e0c5a8cc change note seen timeout 2000 -> 1000 2024-02-05 12:39:28 +02:00

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