Copy attachments on reply/forward only

pull/159/head
M66B 6 years ago
parent fe0714d10e
commit 145b6d7efa

@ -2207,7 +2207,9 @@ public class FragmentCompose extends FragmentBase {
if (uris != null) if (uris != null)
for (Uri uri : uris) for (Uri uri : uris)
addAttachment(context, draft.id, uri, false); addAttachment(context, draft.id, uri, false);
} else if (!"receipt".equals(action)) { } else if (ref != null &&
("reply".equals(action) || "reply_all".equals(action) ||
"forward".equals(action) || "editasnew".equals(action))) {
int sequence = 0; int sequence = 0;
List<EntityAttachment> attachments = db.attachment().getAttachments(ref.id); List<EntityAttachment> attachments = db.attachment().getAttachments(ref.id);
for (EntityAttachment attachment : attachments) for (EntityAttachment attachment : attachments)

Loading…
Cancel
Save