|
|
@ -2963,8 +2963,6 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
|
|
|
if (shouldAnimateUpdates) {
|
|
|
|
if (shouldAnimateUpdates) {
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// We want these animations to be as short as possible, but `performBatchUpdates`
|
|
|
|
|
|
|
|
// will SIGABORT in some cases if the animation duration is zero.
|
|
|
|
|
|
|
|
[UIView performWithoutAnimation:^{
|
|
|
|
[UIView performWithoutAnimation:^{
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
[self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion];
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|