mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
little fix
This commit is contained in:
parent
8b0692404f
commit
7d7fe6491d
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue