mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-10 13:06:33 +00:00
Merge pull request #1072 from knopp/ASCollectionView-content-offset-975
[ASCollectionView] prevent data controller from removing/adding sections during reloadDataImmediately.
This commit is contained in:
@@ -252,6 +252,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
- (void)reloadDataImmediately
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
_superIsPendingDataLoad = YES;
|
||||
[_dataController reloadDataImmediatelyWithAnimationOptions:kASCollectionViewAnimationNone];
|
||||
[super reloadData];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user