Added logging

This commit is contained in:
M66B 2022-12-17 19:35:43 +01:00
parent 061da2becd
commit 3978b2d468
1 changed files with 5 additions and 0 deletions

View File

@ -1277,6 +1277,9 @@ public class FragmentCompose extends FragmentBase {
if (!auto_identity)
return null;
EntityLog.log(context, "Select identity email=" + email +
" sent=" + suggest_sent + " received=" + suggest_received);
List<Integer> types = new ArrayList<>();
if (suggest_sent)
types.add(EntityContact.TYPE_TO);
@ -1288,6 +1291,8 @@ public class FragmentCompose extends FragmentBase {
DB db = DB.getInstance(context);
List<Long> identities = db.contact().getIdentities(email, types);
EntityLog.log(context, "Selected identity email=" + email +
" identities=" + (identities == null ? null : identities.size()));
if (identities != null && identities.size() == 1)
return identities.get(0);