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();