From b5f7a4746f054bc47c56d6a1f0a177010dc8ceb2 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 10 Nov 2017 12:41:11 -0500 Subject: [PATCH] Temporarily alter animations in conversation view. --- .../ConversationView/ConversationViewController.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index c6d24e570..9f9f254ef 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -2957,9 +2957,10 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) { if (shouldAnimateUpdates) { [self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion]; } else { - [UIView performWithoutAnimation:^{ - [self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion]; - }]; + [CATransaction begin]; + [CATransaction setAnimationDuration:0.f]; + [self.collectionView performBatchUpdates:batchUpdates completion:batchUpdatesCompletion]; + [CATransaction commit]; } DDLogInfo(@"After performBatchUpdates"); [DDLog flushLog];