Added logging

pull/199/head
M66B 4 years ago
parent 2ac8c6f012
commit d850869f7f

@ -4092,6 +4092,9 @@ public class FragmentCompose extends FragmentBase {
} else { } else {
// Prevent replying to self // Prevent replying to self
if (ref.replySelf(data.identities, ref.account)) { if (ref.replySelf(data.identities, ref.account)) {
EntityLog.log(context, "Reply self ref" +
" from=" + MessageHelper.formatAddresses(ref.from) +
" to=" + MessageHelper.formatAddresses(ref.to));
data.draft.from = ref.from; data.draft.from = ref.from;
data.draft.to = ref.to; data.draft.to = ref.to;
} else { } else {
@ -4139,10 +4142,10 @@ public class FragmentCompose extends FragmentBase {
if (preferred != null) { if (preferred != null) {
String from = ((InternetAddress) preferred).getAddress(); String from = ((InternetAddress) preferred).getAddress();
EntityLog.log(context, "preferred=" + from); EntityLog.log(context, "Preferred=" + from);
data.draft.extra = UriHelper.getEmailUser(from); data.draft.extra = UriHelper.getEmailUser(from);
} else } else
EntityLog.log(context, "preferred=null"); EntityLog.log(context, "Preferred=null");
} }
} }

Loading…
Cancel
Save