mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
MESSENGER-3352 build settings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user