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
@@ -353,6 +353,16 @@
- (void)refreshCurrentSelectedCell:(BOOL)forceVisible
{
// Check whether the recents data source is correctly configured.
if ([self.dataSource isKindOfClass:RecentsDataSource.class])
{
RecentsDataSource *recentsDataSource = (RecentsDataSource*)self.dataSource;
if (recentsDataSource.recentsDataSourceMode != RecentsDataSourceModePeople)
{
return;
}
}
// Update here the index of the current selected cell (if any) - Useful in landscape mode with split view controller.
NSIndexPath *currentSelectedCellIndexPath = nil;
MasterTabBarController *masterTabBarController = [AppDelegate theDelegate].masterTabBarController;