From b45d4eaadd65885f8c8e5a8f67452d989d1498e0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 15:10:49 +0100 Subject: [PATCH] Increase max messages length --- assets/js/components/conversations/chatWindows.js | 2 +- assets/js/pages/conversations/conversation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index ee915cf7..e8a80735 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -144,7 +144,7 @@ const ConvChatWindow = { class: "form-control", placeholder: tr("New message..."), }); - inputText.maxLength = 200; + inputText.maxLength = ServerConfig.conf.max_conversation_message_len; //Enable textarea 2.0 on the message var textarea2 = new ComunicWeb.components.textarea(); diff --git a/assets/js/pages/conversations/conversation.js b/assets/js/pages/conversations/conversation.js index c07c050d..bb7f640c 100644 --- a/assets/js/pages/conversations/conversation.js +++ b/assets/js/pages/conversations/conversation.js @@ -457,7 +457,7 @@ const ConversationPageConvPart = { class: "form-control", placeholder: "New message...", }); - inputText.maxLength = 200; + inputText.maxLength = ServerConfig.conf.max_conversation_message_len; inputText.focus();