From 69f22b9dba41987763310c1adc4ac87d58d63334 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 11 Dec 2024 22:29:57 +0000 Subject: Point "Continue thread" at last shown post (#7060) --- src/view/com/post-thread/PostThread.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/view/com/post-thread/PostThread.tsx') diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index d8c2ba118..477d77aff 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -421,9 +421,6 @@ export function PostThread({uri}: {uri: string | undefined}) { ) } else if (isThreadPost(item)) { - if (!treeView && item.ctx.hasMoreSelfThread) { - return - } const prev = isThreadPost(posts[index - 1]) ? (posts[index - 1] as ThreadPost) : undefined @@ -436,6 +433,10 @@ export function PostThread({uri}: {uri: string | undefined}) { const hasUnrevealedParents = index === 0 && skeleton?.parents && maxParents < skeleton.parents.length + if (!treeView && prev && item.ctx.hasMoreSelfThread) { + return + } + return (