UX rework: Make the UI of the directory section header

Show it only in RecentsDataSourceModeRooms
This commit is contained in:
manuroe
2017-04-21 08:53:00 +02:00
parent 5f440f5fad
commit 70583d374b
+1 -1
View File
@@ -482,7 +482,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
headerLabel.text = [self titleForHeaderInSection:section];
[sectionHeader addSubview:headerLabel];
if (section == directorySection && !(shrinkedSectionsBitMask & RECENTSDATASOURCE_SECTION_DIRECTORY))
if (section == directorySection && _recentsDataSourceMode == RecentsDataSourceModeRooms && !(shrinkedSectionsBitMask & RECENTSDATASOURCE_SECTION_DIRECTORY))
{
NSLayoutConstraint *leadingConstraint, *trailingConstraint, *topConstraint, *bottomConstraint;
NSLayoutConstraint *widthConstraint, *heightConstraint, *centerYConstraint;