Bug Fix - App crashes on recents refresh

This commit is contained in:
giomfo 2016-11-29 11:46:24 +01:00
parent c130ccf0ca
commit fa169881f9

View file

@ -462,14 +462,14 @@
- (id<MXKRecentCellDataStoring>)cellDataAtIndexPath:(NSIndexPath *)theIndexPath
{
id<MXKRecentCellDataStoring> cellData = nil;
NSInteger row = theIndexPath.row;
NSUInteger row = theIndexPath.row;
NSInteger section = theIndexPath.section;
if (self.droppingCellIndexPath && (self.droppingCellIndexPath.section == section))
{
if (theIndexPath.row > self.droppingCellIndexPath.row)
if (row > self.droppingCellIndexPath.row)
{
row = theIndexPath.row - 1;
row --;
}
}