Skip to content

Commit

Permalink
ignore system-contacts settings on chatmail (in case it was enabled b…
Browse files Browse the repository at this point in the history
…efore)
  • Loading branch information
r10s committed May 14, 2024
1 parent 679f7f3 commit faa4723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deltachat-ios/Handler/DeviceContactsHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DeviceContactsHandler {
}

public func importDeviceContacts() {
if dcContext.getConfigBool("ui.ios.show_system_contacts") && CNContactStore.authorizationStatus(for: .contacts) == .authorized {
if dcContext.getConfigBool("ui.ios.show_system_contacts") && !dcContext.isChatmail && CNContactStore.authorizationStatus(for: .contacts) == .authorized {
addContactsToCore()
}
}
Expand Down

0 comments on commit faa4723

Please sign in to comment.