Skip to content

Commit

Permalink
fix warning: handle new authorization status 'limited' (#2444)
Browse files Browse the repository at this point in the history
* handle new authorization status 'limited'

* also use new Xcode in CI

---------

Co-authored-by: zeitschlag <[email protected]>
  • Loading branch information
r10s and zeitschlag authored Dec 18, 2024
1 parent 3da2897 commit c5f20e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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:
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 c5f20e5

Please sign in to comment.