Console: Recents - In case of refresh, keep visible selected room only if the primary and secondary view controllers are displayed side-by-side onscreen (split view controller use).

This commit is contained in:
giomfo 2015-03-16 13:32:40 +01:00
parent 5042fa92b1
commit a47186c910

View file

@ -238,8 +238,9 @@
[self.tableView reloadData];
// In case of split view controller, update the selected row (if any) and make it visible
if (self.splitViewController) {
// In case of split view controller where the primary and secondary view controllers are displayed side-by-side onscreen,
// the selected room (if any) is updated and kept visible.
if (self.splitViewController && !self.splitViewController.isCollapsed) {
[self refreshCurrentSelectedCell:YES];
}
}