diff --git a/src/lib/views/messages/Messages.svelte b/src/lib/views/messages/Messages.svelte index daaf3dd..fdfa125 100644 --- a/src/lib/views/messages/Messages.svelte +++ b/src/lib/views/messages/Messages.svelte @@ -62,12 +62,11 @@ renderQueue.subscribe((q) => {}); //remove viewed and add new items that haven't been viewed - let shortListLength = derived([renderQueue, viewed], ([$renderQ, $viewed]) => { - //todo: if root cool, but if not, keep loading more 3 at a time + let shortListLength = derived([renderQueue, viewed, threadParentID], ([$renderQ, $viewed, $parentID]) => { let dirty = false; let updated: NostrEvent[] = []; for (let e of _stableShortlist) { - if (!$viewed.has(e.id)) { + if (!$viewed.has(e.id) || $parentID != "root") { //console.log(72, e.id); updated.push(e); } else { diff --git a/src/lib/views/messages/RenderKind1.svelte b/src/lib/views/messages/RenderKind1.svelte index 6773dfc..fc59297 100644 --- a/src/lib/views/messages/RenderKind1.svelte +++ b/src/lib/views/messages/RenderKind1.svelte @@ -7,8 +7,7 @@ import { derived, type Writable } from 'svelte/store'; import type { FrontendData } from '@/snort_workers/types'; import { inview } from 'svelte-inview'; - import { viewed } from '@/workers_snort/firehose_master'; - + import { viewed } from '@/workers_snort/firehose_master'; export let note: NostrEvent; export let onClickReply: () => void; @@ -17,7 +16,6 @@ $: childrenCount = $store?.replies.get(note.id) ? $store.replies.get(note.id)!.size : 0; -