Fixed total size without attachments

This commit is contained in:
M66B 2020-02-07 12:58:45 +01:00
parent 136dce919e
commit c63bc01887
1 changed files with 1 additions and 1 deletions

View File

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