Show / Hide integrations and actions in rooms

This commit is contained in:
Gil Eluard
2021-04-20 14:54:53 +02:00
parent 9d75dca5fc
commit 5a29506407
5 changed files with 99 additions and 15 deletions

View File

@@ -164,12 +164,17 @@ final class RoomInfoListViewController: UIViewController {
self.viewModel.process(viewAction: .navigate(target: .integrations))
}
var rows = [rowSettings]
if (RiotSettings.shared.roomInfoScreenShowIntegrations)
{
rows.append(rowIntegrations)
}
rows.append(rowMembers)
rows.append(rowUploads)
rows.append(rowSearch)
let sectionSettings = Section(header: VectorL10n.roomInfoListSectionOther,
rows: [rowSettings,
rowIntegrations,
rowMembers,
rowUploads,
rowSearch],
rows: rows,
footer: nil)
let leaveTitle = viewData.basicInfoViewData.isDirect ?