mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Make it possible to map between sections even if they're empty (#660)
* Make section mapping work even for empty sections * Unlock more cases and update changelog * Fix complexity documentation
This commit is contained in:
@@ -48,7 +48,7 @@ typedef NSMutableDictionary<NSString *, NSMutableDictionary<NSIndexPath *, ASCol
|
||||
return [[ASElementMap alloc] initWithSections:_sections items:_sectionsOfItems supplementaryElements:_supplementaryElements];
|
||||
}
|
||||
|
||||
- (void)removeAllSectionContexts
|
||||
- (void)removeAllSections
|
||||
{
|
||||
[_sections removeAllObjects];
|
||||
}
|
||||
@@ -63,7 +63,7 @@ typedef NSMutableDictionary<NSString *, NSMutableDictionary<NSIndexPath *, ASCol
|
||||
ASDeleteElementsInTwoDimensionalArrayAtIndexPaths(_sectionsOfItems, indexPaths);
|
||||
}
|
||||
|
||||
- (void)removeSectionContextsAtIndexes:(NSIndexSet *)indexes
|
||||
- (void)removeSectionsAtIndexes:(NSIndexSet *)indexes
|
||||
{
|
||||
[_sections removeObjectsAtIndexes:indexes];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user