mirror of https://github.com/M66B/FairEmail.git
Special case
This commit is contained in:
parent
e4d6782ab9
commit
09f35a1230
|
@ -1720,12 +1720,15 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
String from = null;
|
String from = null;
|
||||||
String to = null;
|
String to = null;
|
||||||
|
String delivered = Helper.canonicalAddress(ref.deliveredto);
|
||||||
String me = Helper.canonicalAddress(Helper.myAddress().getAddress());
|
String me = Helper.canonicalAddress(Helper.myAddress().getAddress());
|
||||||
|
|
||||||
if (ref.from != null && ref.from.length > 0)
|
if (ref.from != null && ref.from.length > 0)
|
||||||
from = Helper.canonicalAddress(((InternetAddress) ref.from[0]).getAddress());
|
from = Helper.canonicalAddress(((InternetAddress) ref.from[0]).getAddress());
|
||||||
if (ref.to != null && ref.to.length > 0)
|
if (ref.to != null && ref.to.length > 0)
|
||||||
to = Helper.canonicalAddress(((InternetAddress) ref.to[0]).getAddress());
|
to = Helper.canonicalAddress(((InternetAddress) ref.to[0]).getAddress());
|
||||||
if (from != null && from.equals(me)) {
|
|
||||||
|
if (delivered.equals(me) && from != null && from.equals(me)) {
|
||||||
if (to != null && to.equals(me))
|
if (to != null && to.equals(me))
|
||||||
draft.to = ref.reply;
|
draft.to = ref.reply;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue