Privacy: If there is no IS, we cannot list local contacts using matrix

#2672
This commit is contained in:
manuroe
2019-09-16 18:01:12 +02:00
parent cbe1e87cbe
commit 3bdb92baeb
3 changed files with 15 additions and 2 deletions
@@ -622,8 +622,16 @@
switch ([CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts])
{
case CNAuthorizationStatusAuthorized:
// Because there is no contacts on the device
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_no_contact", @"Vector", nil);
if (hideNonMatrixEnabledContacts && !self.mxSession.identityService)
{
// Because we cannot make lookups with no IS
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_no_identity_server", @"Vector", nil);
}
else
{
// Because there is no contacts on the device
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_no_contact", @"Vector", nil);
}
break;
case CNAuthorizationStatusNotDetermined: