mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix crash if batch update blocks are nil although method declaration allows nullable (#2599)
This commit is contained in:
committed by
Adlai Holler
parent
ae11fc755e
commit
44aa582ceb
@@ -521,7 +521,9 @@ ASEnvironmentCollectionTableSetEnvironmentState(_environmentStateLock)
|
||||
- (void)performBatchAnimated:(BOOL)animated updates:(void (^)())updates completion:(void (^)(BOOL))completion
|
||||
{
|
||||
[self.view beginUpdates];
|
||||
updates();
|
||||
if (updates) {
|
||||
updates();
|
||||
}
|
||||
[self.view endUpdatesAnimated:animated completion:completion];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user