mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 00:02:47 +00:00
Bug Fix - App crashes on recents refresh
This commit is contained in:
parent
c130ccf0ca
commit
fa169881f9
1 changed files with 3 additions and 3 deletions
|
@ -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 --;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue