Hide or disable search in the encrypted rooms

This commit is contained in:
yostyle
2022-05-02 22:30:39 +02:00
parent 5224a56ec7
commit 5a4798be8e
4 changed files with 9 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ final class RoomInfoListViewController: UIViewController {
// MARK: - Private
private func updateSections(with viewData: RoomInfoListViewData) {
isRoomDirect = viewData.isDirect
basicInfoView.configure(withViewData: viewData.basicInfoViewData)
var tmpSections: [Section] = []
@@ -193,7 +194,9 @@ final class RoomInfoListViewController: UIViewController {
}
rows.append(rowMembers)
rows.append(rowUploads)
rows.append(rowSearch)
if !viewData.isEncrypted {
rows.append(rowSearch)
}
let sectionSettings = Section(header: VectorL10n.roomInfoListSectionOther,
rows: rows,