mirror of https://github.com/M66B/FairEmail.git
Debug DSN
This commit is contained in:
parent
53ce38b2f1
commit
9202f63971
|
@ -3623,10 +3623,15 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if ("list".equals(action) && ref.list_post != null)
|
if ("list".equals(action) && ref.list_post != null)
|
||||||
data.draft.to = ref.list_post;
|
data.draft.to = ref.list_post;
|
||||||
else if ("dsn".equals(action)) {
|
else if ("dsn".equals(action)) {
|
||||||
if (EntityMessage.DSN_RECEIPT.equals(dsn) && ref.receipt_to != null)
|
if (EntityMessage.DSN_RECEIPT.equals(dsn)) {
|
||||||
data.draft.to = ref.receipt_to;
|
if (ref.receipt_to != null)
|
||||||
else if (EntityMessage.DSN_ADDRESS_UNKNOWN.equals(dsn) && ref.return_path != null)
|
data.draft.to = ref.receipt_to;
|
||||||
data.draft.to = ref.return_path;
|
} else if (EntityMessage.DSN_ADDRESS_UNKNOWN.equals(dsn)) {
|
||||||
|
if (ref.return_path != null)
|
||||||
|
data.draft.to = ref.return_path;
|
||||||
|
else if (BuildConfig.DEBUG)
|
||||||
|
data.draft.to = ref.from;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Prevent replying to self
|
// Prevent replying to self
|
||||||
if (ref.replySelf(data.identities, ref.account)) {
|
if (ref.replySelf(data.identities, ref.account)) {
|
||||||
|
|
|
@ -2432,7 +2432,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
popupMenu.getMenu().findItem(R.id.menu_reply_list).setVisible(message.list_post != null);
|
popupMenu.getMenu().findItem(R.id.menu_reply_list).setVisible(message.list_post != null);
|
||||||
popupMenu.getMenu().findItem(R.id.menu_reply_receipt).setVisible(message.receipt_to != null);
|
popupMenu.getMenu().findItem(R.id.menu_reply_receipt).setVisible(message.receipt_to != null);
|
||||||
popupMenu.getMenu().findItem(R.id.menu_reply_address_unknown)
|
popupMenu.getMenu().findItem(R.id.menu_reply_address_unknown)
|
||||||
.setVisible(experiments && message.return_path != null && message.return_path.length > 0);
|
.setVisible(experiments && (BuildConfig.DEBUG ||
|
||||||
|
(message.return_path != null && message.return_path.length > 0)));
|
||||||
popupMenu.getMenu().findItem(R.id.menu_new_message).setVisible(to != null && to.length > 0);
|
popupMenu.getMenu().findItem(R.id.menu_new_message).setVisible(to != null && to.length > 0);
|
||||||
popupMenu.getMenu().findItem(R.id.menu_reply_answer).setVisible(answers != 0 || !ActivityBilling.isPro(context));
|
popupMenu.getMenu().findItem(R.id.menu_reply_answer).setVisible(answers != 0 || !ActivityBilling.isPro(context));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue