From f32edc93e480f283b6c6967850e4bd07b8c4b6da Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 3 Jan 2019 16:32:18 -0500 Subject: [PATCH] Tweak conversation view animations. --- .../ViewControllers/ConversationView/ConversationViewModel.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewModel.m b/Signal/src/ViewControllers/ConversationView/ConversationViewModel.m index 39e25f092..cb35f9dcf 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewModel.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewModel.m @@ -893,7 +893,10 @@ static const int kYapDatabaseRangeMaxLength = 25000; case OWSInteractionType_IncomingMessage: case OWSInteractionType_OutgoingMessage: case OWSInteractionType_TypingIndicator: - if (updateItem.newIndex < updateItems.count - 1) { + // We skip animations for the last _two_ + // interactions, not one since there + // may be a typing indicator. + if (updateItem.newIndex < updateItems.count - 2) { isOnlyModifyingLastMessage = NO; } break;