From fbaf98c11786284ad6c5aa0155b5e4fd2ddff355 Mon Sep 17 00:00:00 2001 From: or-else Date: Wed, 29 Apr 2020 15:17:13 +0300 Subject: [PATCH] use standard inband limit --- src/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.js b/src/config.js index c6f1b859..8174c778 100644 --- a/src/config.js +++ b/src/config.js @@ -54,8 +54,8 @@ export const MESSAGES_PAGE = 24; // This is size of an object *before* base64 encoding is applied. // Increase this limit to a greater value in production, if desired. Also increase // max_message_size in server config. -// MAX_INBAND_ATTACHMENT_SIZE = base64DecodedLen(max_message_size - overhead); -export const MAX_INBAND_ATTACHMENT_SIZE = 195840; +// MAX_INBAND_ATTACHMENT_SIZE = base64DecodedLen(max_message_size) - 1024; +export const MAX_INBAND_ATTACHMENT_SIZE = 195584; // Absolute maximum attachment size to be used with the server = 8MB. Increase to // something like 100MB in production.