mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 18:48:31 +00:00
Special case
This commit is contained in:
parent
834e868d63
commit
f3214fa65f
1 changed files with 18 additions and 13 deletions
|
@ -1717,19 +1717,24 @@ public class FragmentCompose extends FragmentBase {
|
||||||
draft.thread = ref.thread;
|
draft.thread = ref.thread;
|
||||||
|
|
||||||
// Special case
|
// Special case
|
||||||
String from = null;
|
if (BuildConfig.DEBUG) {
|
||||||
String to = null;
|
String from = null;
|
||||||
String me = Helper.canonicalAddress(Helper.myAddress().getAddress());
|
String to = null;
|
||||||
if (ref.from != null && ref.from.length > 0)
|
String me = Helper.canonicalAddress(Helper.myAddress().getAddress());
|
||||||
from = Helper.canonicalAddress(((InternetAddress) ref.from[0]).getAddress());
|
if (ref.from != null && ref.from.length > 0)
|
||||||
if (ref.to != null && ref.to.length > 0)
|
from = Helper.canonicalAddress(((InternetAddress) ref.from[0]).getAddress());
|
||||||
to = Helper.canonicalAddress(((InternetAddress) ref.to[0]).getAddress());
|
if (ref.to != null && ref.to.length > 0)
|
||||||
if (from != null && from.equals(me)) {
|
to = Helper.canonicalAddress(((InternetAddress) ref.to[0]).getAddress());
|
||||||
if (to != null && to.equals(me))
|
if (from != null && from.equals(me)) {
|
||||||
draft.to = ref.reply;
|
if (to != null && to.equals(me))
|
||||||
else
|
draft.to = ref.reply;
|
||||||
draft.to = ref.to;
|
else
|
||||||
draft.from = ref.from;
|
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;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
draft.to = (ref.reply == null || ref.reply.length == 0 ? ref.from : ref.reply);
|
draft.to = (ref.reply == null || ref.reply.length == 0 ? ref.from : ref.reply);
|
||||||
draft.from = ref.to;
|
draft.from = ref.to;
|
||||||
|
|
Loading…
Add table
Reference in a new issue