Fix crash when update corresponds to a move.

reloading during performBatchUpdates requires the *original* indexPath, not the
new index path.
pull/1/head
Michael Kirk 6 years ago committed by Matthew Chen
parent badc959e66
commit 049b858125

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

Loading…
Cancel
Save