-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Is your feature request related to a problem? Please describe.
Inside spinThread, any reply whose generation is non-consecutive with the current TimelineItem.Thread being built hits the else -> Unit branch and is silently discarded. This means if multiple users reply to the same post, only one reply chain survives and the rest are lost before the data ever reaches the ViewModel or PostDetailScreen. The codebase has no model capable of representing branching replies TimelineItem.Thread only holds a flat List<Post>.
Describe the solution you'd like
Two things land in this PR:
- Define a
ReplyNodedata class where each node holds aPost, itsthreadGate,appliedLabels, its depth in the tree, and aList<ReplyNode>as its children. Introduce aTimelineItem.ReplyTreethat holds theanchorPostand aList<ReplyNode>representing the root-level reply branches. - Rewrite
spinThreadto useparentPostUrifromThreadedPostEntityto group descendant posts by their parent and recursively build the fullReplyNodetree rather than a single flat chain. Posts with a negativegeneration(ancestors above the anchor post) remain asTimelineItem.Threadsince that rendering is already correct and tested.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
No status