mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Directory section should be displayed by default in Messages when recents list is empty.
related to https://github.com/vector-im/vector-ios/issues/358
This commit is contained in:
@@ -230,7 +230,18 @@
|
||||
if (self.splitViewController && (![self.splitViewController respondsToSelector:@selector(isCollapsed)] || !self.splitViewController.isCollapsed))
|
||||
{
|
||||
[self refreshCurrentSelectedCell:YES];
|
||||
}
|
||||
}
|
||||
|
||||
// The Directory cell is displayed when the recents list is empty
|
||||
RecentsDataSource *recentsDataSource = (RecentsDataSource*)self.dataSource;
|
||||
if (recentsDataSource.hidePublicRoomsDirectory)
|
||||
{
|
||||
recentsDataSource.hidePublicRoomsDirectory = (self.recentsTableView.numberOfSections != 0);
|
||||
}
|
||||
else if (homeViewController.searchBarHidden)
|
||||
{
|
||||
recentsDataSource.hidePublicRoomsDirectory = (self.recentsTableView.numberOfSections > 1);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)scrollToTop:(BOOL)animated
|
||||
|
||||
Reference in New Issue
Block a user