Set recognized extra only

pull/172/head
M66B 5 years ago
parent c1efe7a9b3
commit 3c8773c915

@ -117,6 +117,9 @@ public class EntityIdentity {
if (other == null)
return false;
if (!other.contains("@") || !email.contains("@"))
return false;
return other.equalsIgnoreCase(email);
}

@ -2814,11 +2814,10 @@ public class FragmentCompose extends FragmentBase {
preferred = (same == null ? similar : same);
}
}
if (preferred == null)
preferred = data.draft.from[0];
String from = ((InternetAddress) preferred).getAddress();
if (from != null && from.contains("@"))
if (preferred != null) {
String from = ((InternetAddress) preferred).getAddress();
data.draft.extra = from.substring(0, from.indexOf("@"));
}
}
}

Loading…
Cancel
Save