Tweak conversation view animations.

This commit is contained in:
Matthew Chen 2019-01-03 16:32:18 -05:00
parent 435379926a
commit f32edc93e4
1 changed files with 4 additions and 1 deletions

View File

@ -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;