[addContact] fix sip addres appears twice when adding from history

This commit is contained in:
Brieuc Viel 2018-01-05 16:03:54 +01:00
parent d146c4ffe5
commit ec9a976517
2 changed files with 1 additions and 1 deletions

View file

@ -14,6 +14,7 @@ Group changes to describe their impact on the project, as follows:
### Added
- Support of IOS 11
- new algorithm to adapt audio and video codec bitrates to the available bandwidth (https://wiki.linphone.org/xwiki/wiki/public/view/FAQ/How%20does%20adaptive%20bitrate%20algorithm%20work%20%3F/)
### Changed
- Contact, CNContact implmentation.

View file

@ -154,7 +154,6 @@
- (void)newContact:(NSString *)address {
CNContact *contact = [[CNContact alloc] init];
Contact *mContact = [[Contact alloc] initWithCNContact:contact];
[mContact setSipAddress:address atIndex:0];
[self selectContact:mContact andReload:NO];
[self addCurrentContactContactField:address];
// force to restart server subscription to add new contact into the list