mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
By default, capture the current animation enabledness for collection/table updates (#2827)
This commit is contained in:
@@ -749,7 +749,8 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
|
||||
- (void)performBatchUpdates:(void (^)())updates completion:(void (^)(BOOL))completion
|
||||
{
|
||||
[self performBatchAnimated:YES updates:updates completion:completion];
|
||||
// We capture the current state of whether animations are enabled if they don't provide us with one.
|
||||
[self performBatchAnimated:[UIView areAnimationsEnabled] updates:updates completion:completion];
|
||||
}
|
||||
|
||||
- (void)registerSupplementaryNodeOfKind:(NSString *)elementKind
|
||||
|
||||
Reference in New Issue
Block a user