Bug Fix: App may crash when the user changes the selected tab,

whereas a room is selected.
This commit is contained in:
Giom Foret
2017-05-03 18:51:09 +02:00
parent 7316c78494
commit ef69b97e71
4 changed files with 53 additions and 162 deletions
+11
View File
@@ -89,6 +89,17 @@
#pragma mark - Override RecentsViewController
- (void)refreshCurrentSelectedCell:(BOOL)forceVisible
{
// Check whether the recents data source is correctly configured.
if (recentsDataSource.recentsDataSourceMode != RecentsDataSourceModeRooms)
{
return;
}
[super refreshCurrentSelectedCell:forceVisible];
}
- (UIView *)tableView:(UITableView *)tableView viewForStickyHeaderInSection:(NSInteger)section
{
CGRect frame = [tableView rectForHeaderInSection:section];