|
|
@ -2965,10 +2965,9 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// We want these animations to be as short as possible, but `performBatchUpdates`
|
|
|
|
// We want these animations to be as short as possible, but `performBatchUpdates`
|
|
|
|
// will SIGABORT in some cases if the animation duration is zero.
|
|
|
|
// will SIGABORT in some cases if the animation duration is zero.
|
|
|
|
[CATransaction begin];
|
|
|
|
[UIView performWithoutAnimation:^{
|
|
|
|
[CATransaction setAnimationDuration:0.001f];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
}];
|
|
|
|
[CATransaction commit];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|