Merge pull request #4960 from vector-im/steve/4734_master_tab_bar_refacto

Split view: Improve detail view management and add possibility to stack views on it
This commit is contained in:
SBiOSoftWhare
2021-10-11 17:23:20 +02:00
committed by GitHub
49 changed files with 1727 additions and 418 deletions
@@ -334,7 +334,7 @@
// 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;
if (masterTabBarController.currentContactDetailViewController)
if (masterTabBarController.selectedContact)
{
// Look for the rank of this selected contact in displayed recents
currentSelectedCellIndexPath = [contactsDataSource cellIndexPathWithContact:masterTabBarController.selectedContact];