mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix - tableView cellForRowAtIndexPath:
return a fake cell to prevent app from crashing.
This commit is contained in:
parent
7e1214b07f
commit
1bf5b1292a
5 changed files with 17 additions and 3 deletions
|
@ -640,8 +640,6 @@
|
|||
}
|
||||
return tableViewCell;
|
||||
}
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
|
|
|
@ -223,7 +223,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
return nil;
|
||||
// Return a fake cell to prevent app from crashing.
|
||||
return [[UITableViewCell alloc] init];
|
||||
}
|
||||
|
||||
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
|
|
|
@ -1123,6 +1123,11 @@
|
|||
|
||||
cell = participantCell;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return a fake cell to prevent app from crashing.
|
||||
cell = [[UITableViewCell alloc] init];
|
||||
}
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
|
|
@ -353,6 +353,11 @@
|
|||
|
||||
cell = participantCell;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return a fake cell to prevent app from crashing.
|
||||
cell = [[UITableViewCell alloc] init];
|
||||
}
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
|
|
@ -169,6 +169,11 @@
|
|||
|
||||
cell = deviceCell;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return a fake cell to prevent app from crashing.
|
||||
cell = [[UITableViewCell alloc] init];
|
||||
}
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue