Show/Hide public directory in Unified Search

This commit is contained in:
Gil Eluard
2021-04-20 10:31:04 +02:00
parent 015eb174d4
commit 4d8b2de5b8
4 changed files with 24 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#import "DirectoryRecentTableViewCell.h"
#import "MXRoom+Riot.h"
#import "Riot-Swift.h"
@interface UnifiedSearchRecentsDataSource()
{
@@ -85,7 +86,10 @@
}
// The public rooms directory cell is then visible whatever the search activity.
self.directorySection = sectionsOffset++;
if (RiotSettings.shared.unifiedSearchScreenShowPublicDirectory)
{
self.directorySection = sectionsOffset++;
}
if (_hideRecents)
{