Skip to content

Commit

Permalink
Incorporate Feedback from PR (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Nov 8, 2024
1 parent acdd843 commit f6e9629
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ internal final class AdvancedViewController: UITableViewController {
self?.showAccountSettingsController()
}
case .proxySettings:
Utils.authenticateDeviceOwner(reason: String.localized("proxy_settings")) { [weak self] in
self?.showProxySettings()
}
showProxySettings()
case .defaultTagValue: break
}
}
Expand Down
5 changes: 0 additions & 5 deletions deltachat-ios/Helper/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ struct Utils {
}

public static func authenticateDeviceOwner(reason: String, callback: @escaping () -> Void) {

#if DEBUG
return callback()
#endif

let localAuthenticationContext = LAContext()
var error: NSError?
if localAuthenticationContext.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) {
Expand Down

0 comments on commit f6e9629

Please sign in to comment.