Prevent setting empty contact names on update

pull/162/head
M66B 6 years ago
parent eb4bdd5a82
commit 6d68db87ec

@ -1807,6 +1807,7 @@ class Core {
contact.id = db.contact().insertContact(contact);
Log.i("Inserted contact=" + contact + " type=" + type);
} else {
if (!TextUtils.isEmpty(name))
contact.name = name;
contact.avatar = (avatar == null ? null : avatar.toString());
contact.times_contacted++;

Loading…
Cancel
Save