mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Prevent double attachment download
This commit is contained in:
@@ -3543,8 +3543,10 @@ public class FragmentCompose extends FragmentBase {
|
||||
if (attachment.available) {
|
||||
if (!attachment.isEncryption())
|
||||
last_available++;
|
||||
} else
|
||||
EntityOperation.queue(context, data.draft, EntityOperation.ATTACHMENT, attachment.id);
|
||||
} else {
|
||||
if (attachment.progress == null)
|
||||
EntityOperation.queue(context, data.draft, EntityOperation.ATTACHMENT, attachment.id);
|
||||
}
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user