mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 18:41:20 +01:00
Fixed sending with attachments
This commit is contained in:
@@ -965,9 +965,11 @@ public class FragmentCompose extends FragmentEx {
|
||||
|
||||
// Restore attachments
|
||||
for (EntityAttachment attachment : attachments) {
|
||||
File file = EntityAttachment.getFile(context, attachment.id);
|
||||
attachment.id = null;
|
||||
attachment.message = draft.id;
|
||||
db.attachment().insertAttachment(attachment);
|
||||
attachment.id = db.attachment().insertAttachment(attachment);
|
||||
Helper.copy(file, EntityAttachment.getFile(context, attachment.id));
|
||||
}
|
||||
|
||||
EntityOperation.queue(db, draft, EntityOperation.SEND);
|
||||
|
||||
Reference in New Issue
Block a user