Contact: store last used identity

This commit is contained in:
M66B
2022-04-18 23:12:24 +02:00
parent 7764b6450f
commit 0431c7c27c
10 changed files with 2776 additions and 12 deletions

View File

@@ -1080,6 +1080,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
JSONObject jcontact = (JSONObject) jcontacts.get(c);
EntityContact contact = EntityContact.fromJSON(jcontact);
contact.account = account.id;
contact.identity = xIdentity.get(contact.identity);
if (db.contact().getContact(contact.account, contact.type, contact.email) == null)
contact.id = db.contact().insertContact(contact);
}