Bug Fix - App crashes on recents refresh

This commit is contained in:
giomfo
2016-11-29 11:46:24 +01:00
parent bba1b0a9d0
commit e7f0c7a1c2
+3 -3
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 --;
}
}