mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Fixed time of original message when replying/forwarding
This commit is contained in:
parent
5760177237
commit
5ff9f690e6
1 changed files with 4 additions and 2 deletions
|
@ -917,16 +917,18 @@ public class FragmentCompose extends FragmentEx {
|
|||
draft.from = ref.to;
|
||||
}
|
||||
|
||||
long time = (ref.sent == null ? ref.received : ref.sent);
|
||||
|
||||
if ("reply".equals(action) || "reply_all".equals(action)) {
|
||||
draft.subject = context.getString(R.string.title_subject_reply, ref.subject);
|
||||
body = String.format("<p>%s %s:</p><blockquote>%s</blockquote>",
|
||||
Html.escapeHtml(new Date().toString()),
|
||||
Html.escapeHtml(new Date(time).toString()),
|
||||
Html.escapeHtml(MessageHelper.getFormattedAddresses(draft.to, true)),
|
||||
HtmlHelper.sanitize(ref.read(context)));
|
||||
} else if ("forward".equals(action)) {
|
||||
draft.subject = context.getString(R.string.title_subject_forward, ref.subject);
|
||||
body = String.format("<p>%s %s:</p><blockquote>%s</blockquote>",
|
||||
Html.escapeHtml(new Date().toString()),
|
||||
Html.escapeHtml(new Date(time).toString()),
|
||||
Html.escapeHtml(MessageHelper.getFormattedAddresses(ref.from, true)),
|
||||
HtmlHelper.sanitize(ref.read(context)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue