mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Privacy: If there is no IS, we cannot list local contacts using matrix
#2672
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user