Loop through through rows using the count of rows in that section, rather than the count of rows in the initial indexPath’s section. Fix #1987.

This commit is contained in:
Brent Simmons 2020-04-12 18:23:20 -07:00
parent 6d9eda442f
commit 1321f0b9ff

View File

@ -1694,7 +1694,7 @@ private extension SceneCoordinator {
}
}()
for j in startingRow..<shadowTable[indexPath.section].count {
for j in startingRow..<shadowTable[i].count {
let nextIndexPath = IndexPath(row: j, section: i)
guard let node = nodeFor(nextIndexPath), let unreadCountProvider = node.representedObject as? UnreadCountProvider else {