Skip to content

Commit

Permalink
fix new cell
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
  • Loading branch information
marinofaggiana committed Sep 16, 2024
1 parent 707f334 commit 38636b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOSClient/Media/NCMediaDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ extension NCMedia {
}
}

if collectionView.visibleCells.count + 100 > limit {
limit = collectionView.visibleCells.count + 100
if collectionView.visibleCells.count > limit {
limit = collectionView.visibleCells.count * 2
}

NextcloudKit.shared.nkCommonInstance.writeLog("[DEBUG] Start searchMedia with lessDate \(lessDate), greaterDate \(greaterDate), limit \(limit)")
Expand Down

0 comments on commit 38636b4

Please sign in to comment.