mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-04 11:50:38 +00:00
If we check for batching before content size is available we'll always fetch (#1355)
This commit is contained in:
parent
d14a3b03e9
commit
001765a85e
@ -1685,7 +1685,8 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
|
|||||||
{
|
{
|
||||||
if (_leadingScreensForBatching != leadingScreensForBatching) {
|
if (_leadingScreensForBatching != leadingScreensForBatching) {
|
||||||
_leadingScreensForBatching = leadingScreensForBatching;
|
_leadingScreensForBatching = leadingScreensForBatching;
|
||||||
ASPerformBlockOnMainThread(^{
|
// Push this to the next runloop to be sure the scroll view has the right content size
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[self _checkForBatchFetching];
|
[self _checkForBatchFetching];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user