little fix

This commit is contained in:
Benjamin Reis 2017-02-09 15:19:13 +01:00
parent 8b0692404f
commit 7d7fe6491d

View file

@ -187,8 +187,9 @@
- (BOOL)setSipAddress:(NSString *)sip atIndex:(NSInteger)index {
BOOL ret = FALSE;
NSString *normSip = NULL;
if (_person) {
NSString *normSip = [self setOrCreateSipContactEntry:index withValue:sip];
normSip = [self setOrCreateSipContactEntry:index withValue:sip];
NSDictionary *lDict = @{
(NSString *)kABPersonInstantMessageUsernameKey : normSip ? normSip : sip,
(NSString *)kABPersonInstantMessageServiceKey : LinphoneManager.instance.contactSipField
@ -200,7 +201,7 @@
}
if (ret) {
_sipAddresses[index] = normSip ? normSip : normSip ? normSip : sip;
_sipAddresses[index] = normSip ? normSip : sip;
}
return ret;
}