Fix crash when update corresponds to a move.

reloading during performBatchUpdates requires the *original* indexPath, not the
new index path.
This commit is contained in:
Michael Kirk 2018-12-22 11:43:33 -07:00 committed by Matthew Chen
parent badc959e66
commit 049b858125
1 changed files with 1 additions and 1 deletions

View File

@ -4463,7 +4463,7 @@ typedef enum : NSUInteger {
}
case ConversationUpdateItemType_Update: {
[self.collectionView reloadItemsAtIndexPaths:@[
[NSIndexPath indexPathForRow:(NSInteger)updateItem.newIndex inSection:section]
[NSIndexPath indexPathForRow:(NSInteger)updateItem.oldIndex inSection:section]
]];
hasUpdated = YES;
break;