Always update existing local contacts

pull/207/head
M66B 4 years ago
parent cc5db29320
commit 7724e5b46f

@ -587,8 +587,13 @@ public class FragmentContacts extends FragmentBase {
EntityContact contact;
if (id > 0)
contact = db.contact().getContact(id);
else
else {
contact = db.contact().getContact(account, type, email);
if (contact == null)
contact = new EntityContact();
else
id = contact.id;
}
contact.account = account;
contact.type = type;

Loading…
Cancel
Save