mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Replace hasLocalContacts with showLocalContacts.
Update the value of showLocalContacts in ContactsTableViewController.
This commit is contained in:
@@ -467,7 +467,7 @@
|
||||
}
|
||||
|
||||
// Keep visible the header for the both contact sections, even if they're are empty.
|
||||
if (BuildSettings.allowLocalContactsAccess && [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts] == CNAuthorizationStatusAuthorized)
|
||||
if (BuildSettings.allowLocalContactsAccess && self.showLocalContacts && [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts] == CNAuthorizationStatusAuthorized)
|
||||
{
|
||||
filteredLocalContactsSection = count++;
|
||||
}
|
||||
@@ -482,7 +482,7 @@
|
||||
}
|
||||
|
||||
// Keep visible the local contact header, even if the section is empty.
|
||||
if (BuildSettings.allowLocalContactsAccess && [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts] == CNAuthorizationStatusAuthorized)
|
||||
if (BuildSettings.allowLocalContactsAccess && self.showLocalContacts && [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts] == CNAuthorizationStatusAuthorized)
|
||||
{
|
||||
filteredLocalContactsSection = count++;
|
||||
}
|
||||
@@ -660,11 +660,6 @@
|
||||
|
||||
#pragma mark -
|
||||
|
||||
- (BOOL)hasLocalContacts
|
||||
{
|
||||
return filteredLocalContacts.count;
|
||||
}
|
||||
|
||||
-(MXKContact *)contactAtIndexPath:(NSIndexPath*)indexPath
|
||||
{
|
||||
NSInteger row = indexPath.row;
|
||||
|
||||
Reference in New Issue
Block a user