mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData.
This commit is contained in:
@@ -147,8 +147,8 @@ NSArray *ASIndexPathsForTwoDimensionalArray(NSArray <NSArray *>* twoDimensionalA
|
||||
for (NSArray *subarray in twoDimensionalArray) {
|
||||
ASDisplayNodeCAssert([subarray isKindOfClass:[NSArray class]], @"This function expects NSArray<NSArray *> *");
|
||||
NSUInteger itemCount = subarray.count;
|
||||
for (int item = 0; item < itemCount; item++) {
|
||||
[result addObject:[NSIndexPath indexPathForItem:item inSection:section]];
|
||||
for (NSUInteger item = 0; item < itemCount; item++) {
|
||||
[result addObject:[NSIndexPath indexPathWithIndexes:(const NSUInteger []){item, section} length:2]];
|
||||
}
|
||||
section++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user