Detect when a native contact has been deleted and remove the matching LinphoneFriend if exists
This commit is contained in:
parent
edb9896105
commit
97bf5ab864
1 changed files with 2 additions and 3 deletions
|
@ -261,9 +261,8 @@ public class ContactsManager extends ContentObserver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
LinphoneContact contact = new LinphoneContact();
|
// If refkey != null but there isn't a native contact with this value, then this contact has been deleted. Let's do the same with the LinphoneFriend
|
||||||
contact.setFriend(friend);
|
LinphoneManager.getLc().removeFriend(friend);
|
||||||
contacts.add(contact);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LinphoneContact contact = new LinphoneContact();
|
LinphoneContact contact = new LinphoneContact();
|
||||||
|
|
Loading…
Reference in a new issue