mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Save draft on adding attachment
This commit is contained in:
@@ -342,7 +342,13 @@ public class MessageHelper {
|
||||
attachments.remove(attachment);
|
||||
}
|
||||
|
||||
if (attachments.size() == 0)
|
||||
int available = 0;
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (attachment.available)
|
||||
available++;
|
||||
Log.i("Attachments available=" + available);
|
||||
|
||||
if (available == 0)
|
||||
imessage.setContent(alternativePart);
|
||||
else {
|
||||
Multipart mixedPart = new MimeMultipart("mixed");
|
||||
|
||||
Reference in New Issue
Block a user