feat(common): match node collapse behaviour with the lobste.rs site

This commit is contained in:
Harsh Shandilya 2022-12-12 12:02:48 +05:30
parent 450601f26b
commit 26f69c2027
No known key found for this signature in database

View file

@ -77,6 +77,10 @@ fun LazyListScope.node(
htmlConverter: HTMLConverter, htmlConverter: HTMLConverter,
toggleExpanded: (CommentNode) -> Unit, toggleExpanded: (CommentNode) -> Unit,
) { ) {
// Skip the node if neither the node nor its parent is expanded
if (!node.isExpanded && node.parent?.isExpanded == false) {
return
}
item { item {
CommentEntry( CommentEntry(
commentNode = node, commentNode = node,