Fix reactions for thread root

This commit is contained in:
2023-09-19 13:14:57 +01:00
parent f5617d1b01
commit 02d9bbf70d

View File

@ -34,7 +34,7 @@ export default function useThreadFeed(link: NostrLink) {
} }
}, [store.data?.length]); }, [store.data?.length]);
const reactions = useReactions(`thread:${link.id.slice(0, 12)}:reactions`, allEvents); const reactions = useReactions(`thread:${link.id.slice(0, 12)}:reactions`, [link, ...allEvents]);
return { return {
thread: store.data ?? [], thread: store.data ?? [],