Thread tweaks

This commit is contained in:
2022-12-28 17:05:20 +00:00
parent 0725e84d7b
commit f6a4ce3cdc
7 changed files with 64 additions and 21 deletions

View File

@ -49,6 +49,9 @@ export default function useThreadFeed(id) {
for (let m of thread.Mentions) {
sub.Ids.add(m.Event);
}
} else {
// this event is a root note, no other notes need to be loaded
return;
}
} else if (notes.length === 0) {
sub.Ids.add(id);
@ -69,7 +72,6 @@ export default function useThreadFeed(id) {
}, [system, notes]);
useEffect(() => {
console.debug("use thread stream")
dispatch(reset());
}, []);