mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
[ASCollectionView] prevent data controller from removing/adding sections during reloadDataImmediately
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
This commit is contained in:
parent
58c2e8039f
commit
a6da3d185a
@ -252,6 +252,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
- (void)reloadDataImmediately
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
_superIsPendingDataLoad = YES;
|
||||
[_dataController reloadDataImmediatelyWithAnimationOptions:kASCollectionViewAnimationNone];
|
||||
[super reloadData];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user