mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Remove headers from PeopleViewController.
This commit is contained in:
parent
dd4c85fad7
commit
18e1c115b9
1 changed files with 2 additions and 30 deletions
|
@ -74,8 +74,6 @@
|
|||
|
||||
// Change the table data source. It must be the people view controller itself.
|
||||
self.recentsTableView.dataSource = self;
|
||||
|
||||
self.enableStickyHeaders = YES;
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
@ -181,24 +179,12 @@
|
|||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
// FIXME: Should this need to check the section?
|
||||
if (section >= directRoomsSectionNumber)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
return [super tableView:tableView heightForHeaderInSection:section];
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
// FIXME: Should this need to check the section?
|
||||
if (section >= directRoomsSectionNumber)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
return [super tableView:tableView viewForHeaderInSection:section];
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
|
@ -226,20 +212,6 @@
|
|||
|
||||
#pragma mark - Override RecentsViewController
|
||||
|
||||
- (UIView *)tableView:(UITableView *)tableView viewForStickyHeaderInSection:(NSInteger)section
|
||||
{
|
||||
// FIXME: Should this need to check the section?
|
||||
if (section >= directRoomsSectionNumber || recentsDataSource == nil)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
CGRect frame = [tableView rectForHeaderInSection:section];
|
||||
frame.size.height = self.stickyHeaderHeight;
|
||||
|
||||
return [recentsDataSource viewForStickyHeaderInSection:section withFrame:frame];
|
||||
}
|
||||
|
||||
- (void)refreshCurrentSelectedCell:(BOOL)forceVisible
|
||||
{
|
||||
// Check whether the recents data source is correctly configured.
|
||||
|
|
Loading…
Reference in a new issue