Use correct resent headers

This commit is contained in:
M66B
2021-12-12 10:12:45 +01:00
parent 33859b0be8
commit 682a7ffca1
2 changed files with 63 additions and 73 deletions

View File

@@ -4597,7 +4597,9 @@ public class FragmentCompose extends FragmentBase {
ref.language,
alt_fwd ? R.string.title_subject_forward_alt : R.string.title_subject_forward,
subject);
} else if ("resend".equals(action) || "editasnew".equals(action)) {
} else if ("resend".equals(action)) {
data.draft.subject = ref.subject;
} else if ("editasnew".equals(action)) {
if (ref.from != null && ref.from.length == 1) {
String from = ((InternetAddress) ref.from[0]).getAddress();
for (EntityIdentity identity : data.identities)
@@ -4606,11 +4608,13 @@ public class FragmentCompose extends FragmentBase {
break;
}
}
data.draft.to = ref.to;
data.draft.cc = ref.cc;
data.draft.bcc = ref.bcc;
data.draft.subject = ref.subject;
if (ref.content && "editasnew".equals(action))
if (ref.content)
document = JsoupEx.parse(ref.getFile(context));
} else if ("list".equals(action)) {
data.draft.subject = ref.subject;