UX Rework: Add home page

- Improve filter handling
- Fix empty people section

https://github.com/vector-im/riot-meta/issues/75
This commit is contained in:
Giom Foret
2017-05-12 17:39:05 +02:00
parent ce41b887b5
commit 1c4fa177de
3 changed files with 17 additions and 42 deletions
+3 -2
View File
@@ -244,7 +244,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
favoritesSection = sectionsCount++;
}
if (peopleCellDataArray.count > 0)
if (_recentsDataSourceMode == RecentsDataSourceModeHome)
{
peopleSection = sectionsCount++;
}
@@ -789,7 +789,8 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
{
return self.droppingCellBackGroundView.frame.size.height;
}
if (indexPath.section == conversationSection && !conversationCellDataArray.count)
if ((indexPath.section == conversationSection && !conversationCellDataArray.count)
|| (indexPath.section == peopleSection && !peopleCellDataArray.count))
{
return 50.0;
}