|
|
@ -2957,9 +2957,10 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
|
|
|
if (shouldAnimateUpdates) {
|
|
|
|
if (shouldAnimateUpdates) {
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
[UIView performWithoutAnimation:^{
|
|
|
|
[CATransaction begin];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
[CATransaction setAnimationDuration:0.f];
|
|
|
|
}];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
|
|
|
|
[CATransaction commit];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DDLogInfo(@"After performBatchUpdates");
|
|
|
|
DDLogInfo(@"After performBatchUpdates");
|
|
|
|
[DDLog flushLog];
|
|
|
|
[DDLog flushLog];
|
|
|
|