mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
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:
parent
5042fa92b1
commit
a47186c910
1 changed files with 3 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue