Check append limit

This commit is contained in:
M66B
2020-07-03 10:04:09 +02:00
parent d12e7a1d92
commit f4ef463cbd
4 changed files with 19 additions and 4 deletions

View File

@@ -264,7 +264,6 @@ public class FragmentCompose extends FragmentBase {
private static final int REDUCED_IMAGE_QUALITY = 90; // percent
private static final int RECIPIENTS_WARNING = 10;
private static final int HEADERS_SIZE = 32 * 1024; // bytes
private static final int REQUEST_CONTACT_TO = 1;
private static final int REQUEST_CONTACT_CC = 2;
@@ -4283,7 +4282,7 @@ public class FragmentCompose extends FragmentBase {
// Check size
if (identity != null && identity.max_size != null) {
long size = HEADERS_SIZE + body.length();
long size = MessageHelper.HEADERS_SIZE + body.length();
for (EntityAttachment attachment : attachments)
if (attachment.available)
size += attachment.size;