mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
When not visible, only batch fetch to fill visible area
This commit is contained in:
@@ -1708,6 +1708,12 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
[_rangeController setNeedsUpdate];
|
||||
[_rangeController updateIfNeeded];
|
||||
}
|
||||
|
||||
// When we aren't visible, we will only fetch up to the visible area. Now that we are visible,
|
||||
// we will fetch visible area + leading screens, so we need to check.
|
||||
if (visible) {
|
||||
[self _checkForBatchFetching];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark ASCALayerExtendedDelegate
|
||||
|
||||
Reference in New Issue
Block a user