mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Select identity by canonical address
This commit is contained in:
@@ -805,9 +805,10 @@ public class FragmentCompose extends FragmentEx {
|
||||
|
||||
// Select identity matching from address
|
||||
if (!found && draft.from != null && draft.from.length > 0) {
|
||||
String from = ((InternetAddress) draft.from[0]).getAddress();
|
||||
String from = Helper.canonicalAddress(((InternetAddress) draft.from[0]).getAddress());
|
||||
|
||||
for (int pos = 0; pos < identities.size(); pos++) {
|
||||
if (identities.get(pos).email.equals(from)) {
|
||||
if (Helper.canonicalAddress(identities.get(pos).email).equals(from)) {
|
||||
spFrom.setSelection(pos);
|
||||
found = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user