[ContactDisplay] fix settings display phone only

This commit is contained in:
Brieuc Viel 2018-01-11 15:56:58 +01:00
parent 8e0270067c
commit aa6587f92e

View file

@ -575,13 +575,15 @@
Contact *contact = [FastAddressBook getContactWithAddress:addr];
if (contact) {
[ContactDisplay setDisplayNameLabel:label forContact:contact];
addressLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(addr)];
addressLabel.hidden = FALSE;
} else {
label.text = [FastAddressBook displayNameForAddress:addr];
if([LinphoneManager.instance lpConfigBoolForKey:@"display_phone_only" inSection:@"app"])
addressLabel.hidden = TRUE;
else
addressLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(addr)];
}
if([LinphoneManager.instance lpConfigStringForKey:@"display_phone_only" inSection:@"app"])
addressLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(addr)];
else
addressLabel.hidden = TRUE;
}