From 46e12c6d34897fab77e039b1acb13b88a4b97a80 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 11 Jun 2024 11:30:38 -0700 Subject: Improve thread loading (#4402) * Increase the number of posts loaded when a self-thread is present * Increase depth to 10, detect cutoffs on self-threads and show continue link * Stacky the avis --- src/view/com/post-thread/PostThread.tsx | 4 ++++ 1 file changed, 4 insertions(+) (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 35028334c..8061eb11c 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -34,6 +34,7 @@ import {ComposePrompt} from '../composer/Prompt' import {List, ListMethods} from '../util/List' import {ViewHeader} from '../util/ViewHeader' import {PostThreadItem} from './PostThreadItem' +import {PostThreadLoadMore} from './PostThreadLoadMore' import {PostThreadShowHiddenReplies} from './PostThreadShowHiddenReplies' // FlatList maintainVisibleContentPosition breaks if too many items @@ -364,6 +365,9 @@ export function PostThread({ ) } else if (isThreadPost(item)) { + if (!treeView && item.ctx.hasMoreSelfThread) { + return + } const prev = isThreadPost(posts[index - 1]) ? (posts[index - 1] as ThreadPost) : undefined -- cgit 1.4.1