From aa6587f92e7fb17c7017785d13ec1757f60ec928 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Thu, 11 Jan 2018 15:56:58 +0100 Subject: [PATCH] [ContactDisplay] fix settings display phone only --- Classes/Utils/Utils.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Classes/Utils/Utils.m b/Classes/Utils/Utils.m index 1899e3b48..443c87f31 100644 --- a/Classes/Utils/Utils.m +++ b/Classes/Utils/Utils.m @@ -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; }