Fixed total size without attachments

pull/174/head
M66B 6 years ago
parent 136dce919e
commit c63bc01887

@ -401,7 +401,7 @@ public class ServiceSend extends ServiceBase {
if (body != null) if (body != null)
size = (long) body.length(); size = (long) body.length();
Long total = null; Long total = size;
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id); List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
for (EntityAttachment attachment : attachments) for (EntityAttachment attachment : attachments)
if (attachment.size != null) if (attachment.size != null)

Loading…
Cancel
Save