Skip to content

Commit

Permalink
handle new authorization status 'limited'
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Dec 17, 2024
1 parent d061fda commit 805f992
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ internal final class AdvancedViewController: UITableViewController {
action: { cell in
if cell.isOn {
switch CNContactStore.authorizationStatus(for: .contacts) {
case .authorized:
case .authorized, .limited:

Check failure on line 143 in deltachat-ios/Controller/Settings/AdvancedViewController.swift

View workflow job for this annotation

GitHub Actions / build

type 'CNAuthorizationStatus' has no member 'limited'

Check failure on line 143 in deltachat-ios/Controller/Settings/AdvancedViewController.swift

View workflow job for this annotation

GitHub Actions / build

type 'CNAuthorizationStatus' has no member 'limited'
self.dcContext.setConfigBool("ui.ios.show_system_contacts", true)
case .restricted, .notDetermined:
CNContactStore().requestAccess(for: .contacts) { [weak self] granted, _ in
Expand Down

0 comments on commit 805f992

Please sign in to comment.