mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Refactor cod
This commit is contained in:
parent
44dfd0fb12
commit
8ef7327c79
1 changed files with 4 additions and 4 deletions
|
|
@ -197,8 +197,8 @@
|
|||
if (_person) {
|
||||
normSip = [self setOrCreateSipContactEntry:index withValue:sip];
|
||||
NSDictionary *lDict = @{
|
||||
(NSString *) kABPersonInstantMessageUsernameKey : normSip ? normSip : sip, (NSString *)
|
||||
kABPersonInstantMessageServiceKey : LinphoneManager.instance.contactSipField
|
||||
(NSString *)kABPersonInstantMessageUsernameKey : normSip ? normSip : sip,
|
||||
(NSString *)kABPersonInstantMessageServiceKey : LinphoneManager.instance.contactSipField
|
||||
};
|
||||
|
||||
ret = [self replaceInProperty:kABPersonInstantMessageProperty value:(__bridge CFTypeRef)(lDict) atIndex:index];
|
||||
|
|
@ -358,8 +358,8 @@
|
|||
CFErrorRef error = NULL;
|
||||
|
||||
NSDictionary *lDict = @{
|
||||
(NSString *) kABPersonInstantMessageUsernameKey : value, (NSString *)
|
||||
kABPersonInstantMessageServiceKey : [LinphoneManager instance].contactSipField
|
||||
(NSString *)kABPersonInstantMessageUsernameKey : value,
|
||||
(NSString *)kABPersonInstantMessageServiceKey : [LinphoneManager instance].contactSipField
|
||||
};
|
||||
|
||||
if (![self replaceInProperty:kABPersonInstantMessageProperty value:(__bridge CFTypeRef)(lDict) atIndex:index]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue