Use actual index, not seen index
This commit is contained in:
@@ -270,7 +270,7 @@ export function sortAndAnnotateThreadItems(
|
|||||||
*/
|
*/
|
||||||
metadata.isLastSibling =
|
metadata.isLastSibling =
|
||||||
metadata.replyIndex ===
|
metadata.replyIndex ===
|
||||||
metadata.parentMetadata.repliesSeenCounter - 1
|
metadata.parentMetadata.repliesIndexCounter - 1
|
||||||
metadata.isLastChild =
|
metadata.isLastChild =
|
||||||
metadata.nextItemDepth === undefined ||
|
metadata.nextItemDepth === undefined ||
|
||||||
metadata.nextItemDepth <= metadata.depth
|
metadata.nextItemDepth <= metadata.depth
|
||||||
|
|||||||
Reference in New Issue
Block a user