mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Added sort on sender
This commit is contained in:
@@ -1285,7 +1285,6 @@ public class FragmentCompose extends FragmentEx {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Select identity matching from address
|
||||
String from = null;
|
||||
EntityIdentity primary = null;
|
||||
@@ -1308,6 +1307,8 @@ public class FragmentCompose extends FragmentEx {
|
||||
result.draft.from = new InternetAddress[]{new InternetAddress(primary.email, primary.name)};
|
||||
}
|
||||
|
||||
result.draft.sender = MessageHelper.getSortKey(result.draft.from);
|
||||
|
||||
result.draft.received = new Date().getTime();
|
||||
result.draft.setContactInfo(context);
|
||||
|
||||
@@ -1658,6 +1659,7 @@ public class FragmentCompose extends FragmentEx {
|
||||
// Update draft
|
||||
draft.identity = ident;
|
||||
draft.extra = extra;
|
||||
draft.sender = MessageHelper.getSortKey(afrom);
|
||||
draft.from = afrom;
|
||||
draft.to = ato;
|
||||
draft.cc = acc;
|
||||
|
||||
Reference in New Issue
Block a user