bug: loading replies for linked note in thread

This commit is contained in:
Kieran 2023-06-19 09:26:52 +01:00
parent 769e093663
commit 12250c5e3d
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -61,14 +61,13 @@ export default function useThreadFeed(link: NostrLink) {
if (link.type === NostrPrefix.Address) { if (link.type === NostrPrefix.Address) {
setTrackingATags([`${link.kind}:${link.author}:${link.id}`]); setTrackingATags([`${link.kind}:${link.author}:${link.id}`]);
} else { } else {
setTrackingEvent([ const lnk = {
{ id: link.id,
id: link.id, relay: link.relays?.[0],
relay: link.relays?.[0], };
}, setTrackingEvent([lnk]);
]); setAllEvents([lnk]);
} }
setAllEvents([]);
}, [link.id]); }, [link.id]);
useEffect(() => { useEffect(() => {