Skip to content

Commit

Permalink
hide key settings from chatmail accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Feb 11, 2025
1 parent b6d4508 commit 5bf934b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions deltachat-ios/Controller/Settings/AdvancedViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ internal final class AdvancedViewController: UITableViewController {
return cell
}()

private lazy var sendAutocryptMessageCell: UITableViewCell = {
let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
private lazy var sendAutocryptMessageCell: ActionCell = {
let cell = ActionCell()
cell.tag = CellTags.sendAutocryptMessage.rawValue
cell.textLabel?.text = String.localized("autocrypt_send_asm_title")
return cell
}()

private lazy var manageKeysCell: UITableViewCell = {
let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
private lazy var manageKeysCell: ActionCell = {
let cell = ActionCell()
cell.tag = CellTags.manageKeys.rawValue
cell.textLabel?.text = String.localized("pref_manage_keys")
return cell
Expand Down Expand Up @@ -236,15 +236,11 @@ internal final class AdvancedViewController: UITableViewController {
cells: [videoChatInstanceCell, broadcastListsCell, locationStreamingCell])

if dcContext.isChatmail {
let encryptionSection = SectionConfigs(
headerTitle: String.localized("pref_encryption"),
footerTitle: nil,
cells: [manageKeysCell, sendAutocryptMessageCell])
let serverSection = SectionConfigs(
headerTitle: String.localized("pref_server"),
footerTitle: nil,
cells: [accountSettingsCell, proxySettingsCell])
return [viewLogSection, experimentalSection, encryptionSection, serverSection]
return [viewLogSection, experimentalSection, serverSection]
} else {
let appAccessSection = SectionConfigs(
headerTitle: String.localized("pref_app_access"),
Expand All @@ -257,8 +253,8 @@ internal final class AdvancedViewController: UITableViewController {
let serverSection = SectionConfigs(
headerTitle: String.localized("pref_server"),
footerTitle: String.localized("pref_only_fetch_mvbox_explain"),
cells: [accountSettingsCell, sentboxWatchCell, sendCopyToSelfCell, mvboxMoveCell, onlyFetchMvboxCell, proxySettingsCell])
return [viewLogSection, experimentalSection, appAccessSection, encryptionSection, serverSection]
cells: [accountSettingsCell, proxySettingsCell, sentboxWatchCell, sendCopyToSelfCell, mvboxMoveCell, onlyFetchMvboxCell])
return [viewLogSection, experimentalSection, serverSection, appAccessSection, encryptionSection]
}
}()

Expand Down

0 comments on commit 5bf934b

Please sign in to comment.