Store contact identity for outgoing messages only

pull/214/head
M66B 12 months ago
parent 23b7a4cc4a
commit ee8faf7527

@ -197,7 +197,8 @@ public class EntityContact implements Serializable {
if (contact == null) { if (contact == null) {
contact = new EntityContact(); contact = new EntityContact();
contact.account = account; contact.account = account;
contact.identity = identity; if (type == TYPE_TO)
contact.identity = identity;
contact.type = type; contact.type = type;
contact.email = email; contact.email = email;
contact.name = name; contact.name = name;
@ -209,7 +210,8 @@ public class EntityContact implements Serializable {
contact.id = db.contact().insertContact(contact); contact.id = db.contact().insertContact(contact);
Log.i("Inserted contact=" + contact + " type=" + type); Log.i("Inserted contact=" + contact + " type=" + type);
} else { } else {
contact.identity = identity; if (type == TYPE_TO)
contact.identity = identity;
if (contact.name == null && name != null) if (contact.name == null && name != null)
contact.name = name; contact.name = name;
if (contact.group == null && group != null) if (contact.group == null && group != null)

Loading…
Cancel
Save