Fix crash when leaving timeline VC that was showing timeline description message and doesn't have any statuses

This commit is contained in:
Shadowfacts 2021-11-07 23:22:48 -05:00
parent 2df703ab71
commit 948c792e5d
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ class DiffableTimelineLikeTableViewController<Section: Hashable & CaseIterable,
}
private func pruneOffscreenRows() {
guard let lastVisibleRow = lastLastVisibleRow else {
guard let lastVisibleRow = lastLastVisibleRow,
lastVisibleRow.section < tableView.numberOfSections else {
return
}