Add moreParents handling

This commit is contained in:
Eric Bailey
2025-06-05 10:37:34 -05:00
parent c705c431d8
commit 8144eac8a2
8 changed files with 149 additions and 3 deletions
@@ -353,6 +353,16 @@ export function sortAndAnnotateThreadItems(
i++
}
/**
* Only occurs for the first item in the thread, which may have
* additional parents not included in this request.
*/
if (item.value.moreParents) {
metadata.followsReadMoreUp = true
subset.splice(i, 0, views.readMoreUp(metadata))
i++
}
/*
* Calculate the final UI state for the thread item.
*/
@@ -362,6 +372,8 @@ export function sortAndAnnotateThreadItems(
}
}
console.log(threadItems)
return {
threadItems,
hiddenThreadItems,