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:
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…
Reference in New Issue