mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
[Spaces] Show suggested in room lists #4501
- Show suggested rooms section in home screen (no actions) - Show suggested rooms section in rooms screen (no actions)
This commit is contained in:
@@ -103,8 +103,13 @@
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
// Hide the header to merge Invites and Rooms into a single list.
|
||||
return 0.0;
|
||||
if ([tableView numberOfSections] <= 1)
|
||||
{
|
||||
// Hide the header to merge Invites and Rooms into a single list.
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
return [super tableView:tableView heightForHeaderInSection:section];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
@@ -155,7 +160,8 @@
|
||||
- (NSUInteger)totalItemCounts
|
||||
{
|
||||
return recentsDataSource.conversationCellDataArray.count
|
||||
+ recentsDataSource.invitesCellDataArray.count;
|
||||
+ recentsDataSource.invitesCellDataArray.count
|
||||
+ recentsDataSource.suggestedRoomCellDataArray.count;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user