MESSENGER-3352 build settings

This commit is contained in:
Arnfried Griesert
2022-10-27 09:06:24 +00:00
parent e2a2eb4c61
commit 86aa5365bb
103 changed files with 1013 additions and 1360 deletions

View File

@@ -221,7 +221,7 @@ final class RoomInfoListViewController: UIViewController {
var rows = [rowSettings]
if BuildSettings.bwiRollsAndRights && !(viewModel.isPersonalNotesRoom() || viewModel.isDirectRoom()) {
if BWIBuildSettings.shared.bwiRollsAndRights && !(viewModel.isPersonalNotesRoom() || viewModel.isDirectRoom()) {
rows.append(rowRollsAndRights)
}
if BuildSettings.showNotificationsV2 {
@@ -233,11 +233,11 @@ final class RoomInfoListViewController: UIViewController {
rows.append(rowMembers)
rows.append(rowUploads)
if BwiBuildSettings.bwiShowRoomSearch {
if BWIBuildSettings.shared.bwiShowRoomSearch {
rows.append(rowSearch)
}
if BwiBuildSettings.bwiAllowRoomPermalink {
if BWIBuildSettings.shared.bwiAllowRoomPermalink {
rows.append(rowPermalink)
}
@@ -253,7 +253,7 @@ final class RoomInfoListViewController: UIViewController {
VectorL10n.roomParticipantsLeavePromptTitleForDm :
VectorL10n.roomParticipantsLeavePromptTitle
let rowLeave = Row(type: .destructive, icon: Asset.Images.roomActionLeave.image, text: leaveTitle, accessoryType: .none) {
if BuildSettings.lastAdminIsNotAllowedToLeaveRoom {
if BWIBuildSettings.shared.lastAdminIsNotAllowedToLeaveRoom {
self.present(self.getLeaveAlertController(), animated: true, completion: nil)
} else {
self.present(self.leaveAlertController, animated: true, completion: nil)
@@ -521,7 +521,7 @@ extension RoomInfoListViewController {
rows.append(rowUploads)
if BuildSettings.bwiPersonalNotesRoomLeavable {
if BWIBuildSettings.shared.bwiPersonalNotesRoomLeavable {
let leaveTitle = VectorL10n.roomParticipantsLeavePromptTitle
let rowLeave = Row(type: .destructive, icon: Asset.Images.roomActionLeave.image, text: leaveTitle, accessoryType: .none) {
self.present(self.leaveAlertController, animated: true, completion: nil)