mirror of https://github.com/M66B/FairEmail.git
Just for me
This commit is contained in:
parent
b06e8c6a7e
commit
020cdf95c1
|
@ -1633,8 +1633,25 @@ public class FragmentCompose extends FragmentBase {
|
||||||
draft.references = (ref.references == null ? "" : ref.references + " ") + ref.msgid;
|
draft.references = (ref.references == null ? "" : ref.references + " ") + ref.msgid;
|
||||||
draft.inreplyto = ref.msgid;
|
draft.inreplyto = ref.msgid;
|
||||||
draft.thread = ref.thread;
|
draft.thread = ref.thread;
|
||||||
draft.to = (ref.reply == null || ref.reply.length == 0 ? ref.from : ref.reply);
|
|
||||||
draft.from = ref.to;
|
// Special case
|
||||||
|
String from = null;
|
||||||
|
String to = null;
|
||||||
|
String me = Helper.canonicalAddress(Helper.myAddress().getAddress());
|
||||||
|
if (ref.from != null && ref.from.length > 0)
|
||||||
|
from = Helper.canonicalAddress(((InternetAddress) ref.from[0]).getAddress());
|
||||||
|
if (ref.to != null && ref.to.length > 0)
|
||||||
|
to = Helper.canonicalAddress(((InternetAddress) ref.to[0]).getAddress());
|
||||||
|
if (from != null && from.equals(me)) {
|
||||||
|
if (to != null && to.equals(me))
|
||||||
|
draft.to = ref.reply;
|
||||||
|
else
|
||||||
|
draft.to = ref.to;
|
||||||
|
draft.from = ref.from;
|
||||||
|
} else {
|
||||||
|
draft.to = (ref.reply == null || ref.reply.length == 0 ? ref.from : ref.reply);
|
||||||
|
draft.from = ref.to;
|
||||||
|
}
|
||||||
|
|
||||||
if ("reply_all".equals(action)) {
|
if ("reply_all".equals(action)) {
|
||||||
List<Address> addresses = new ArrayList<>();
|
List<Address> addresses = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue