mirror of https://github.com/M66B/FairEmail.git
Set recognized extra only
This commit is contained in:
parent
c1efe7a9b3
commit
3c8773c915
|
@ -117,6 +117,9 @@ public class EntityIdentity {
|
||||||
if (other == null)
|
if (other == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!other.contains("@") || !email.contains("@"))
|
||||||
|
return false;
|
||||||
|
|
||||||
return other.equalsIgnoreCase(email);
|
return other.equalsIgnoreCase(email);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2814,11 +2814,10 @@ public class FragmentCompose extends FragmentBase {
|
||||||
preferred = (same == null ? similar : same);
|
preferred = (same == null ? similar : same);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (preferred == null)
|
if (preferred != null) {
|
||||||
preferred = data.draft.from[0];
|
String from = ((InternetAddress) preferred).getAddress();
|
||||||
String from = ((InternetAddress) preferred).getAddress();
|
|
||||||
if (from != null && from.contains("@"))
|
|
||||||
data.draft.extra = from.substring(0, from.indexOf("@"));
|
data.draft.extra = from.substring(0, from.indexOf("@"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue