From c5f20e591eed1c9de0c32717c100d3be0731af0d Mon Sep 17 00:00:00 2001 From: bjoern Date: Wed, 18 Dec 2024 18:14:23 +0100 Subject: [PATCH] fix warning: handle new authorization status 'limited' (#2444) * handle new authorization status 'limited' * also use new Xcode in CI --------- Co-authored-by: zeitschlag --- .github/workflows/ci.yml | 2 +- deltachat-ios/Controller/Settings/AdvancedViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ca904641..c4b62038a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,6 @@ jobs: with: submodules: true show-progress: false - - run: sudo xcode-select --switch /Applications/Xcode_16.0.app/Contents/Developer + - run: sudo xcode-select --switch /Applications/Xcode_16.1.app/Contents/Developer - run: cargo install cargo-lipo - run: set -o pipefail && xcodebuild -workspace deltachat-ios.xcworkspace -scheme deltachat-ios -destination "platform=iOS Simulator,name=iPhone SE (3rd generation)" | xcbeautify --renderer github-actions diff --git a/deltachat-ios/Controller/Settings/AdvancedViewController.swift b/deltachat-ios/Controller/Settings/AdvancedViewController.swift index cbfc224e0..77753876a 100644 --- a/deltachat-ios/Controller/Settings/AdvancedViewController.swift +++ b/deltachat-ios/Controller/Settings/AdvancedViewController.swift @@ -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: self.dcContext.setConfigBool("ui.ios.show_system_contacts", true) case .restricted, .notDetermined: CNContactStore().requestAccess(for: .contacts) { [weak self] granted, _ in