forked from mirrors/linphone-iphone
erase contact when cancelling an adD
This commit is contained in:
parent
03ca623e4f
commit
47dba0d21a
1 changed files with 1 additions and 18 deletions
|
|
@ -422,24 +422,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
[self saveData];
|
||||
[self.tableController.tableView reloadData];
|
||||
} else {
|
||||
BOOL rm = TRUE;
|
||||
for (NSString *sip in _contact.sipAddresses) {
|
||||
if (![sip isEqualToString:@""]) {
|
||||
rm = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (rm) {
|
||||
for (NSString *phone in _contact.phoneNumbers) {
|
||||
if (![phone isEqualToString:@""]) {
|
||||
rm = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (rm) {
|
||||
[LinphoneManager.instance.fastAddressBook removeContact:_contact];
|
||||
}
|
||||
[LinphoneManager.instance.fastAddressBook removeContact:_contact];
|
||||
}
|
||||
|
||||
[self setEditing:FALSE];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue