From fba7c4641ed53bc1cf2cfb87de27b3d72b1e68ca Mon Sep 17 00:00:00 2001 From: cool-guy-dev <116984615+cool-dev-guy@users.noreply.github.com> Date: Sun, 1 Oct 2023 21:56:44 +0530 Subject: [PATCH] Update main_v2.js --- static/js/main_v2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/main_v2.js b/static/js/main_v2.js index 4428ecf..ea1ce31 100644 --- a/static/js/main_v2.js +++ b/static/js/main_v2.js @@ -120,7 +120,7 @@ function sendMessage(){ _sendMessage = document.getElementById("MessageBoxInput").value; document.getElementById("MessageBoxInput").value = ''; if (_sendMessage!='' && document.chatUsername!=null && document.chatUri!=null){ - _passableMessage = _sendMessage.substring(0, 185); + _passableMessage = _sendMessage; console.log(document.chatUsername); //chatAppCreateMessageBox(document.chatUsername,_passableMessage); document.chatInterface.scrollTop = document.chatInterface.scrollHeight; @@ -129,7 +129,7 @@ function sendMessage(){ } async function sendMessageToServer(text) { var Mcount = parseInt(getStorage('userMessageCount'), 10); - var message = await createMessageObject(text) + var message = await createMessageObject(text); const url = `${proxy}/${document.chatUri}/add/${document.chatUsername};${Mcount}/0/0/${message}`; sendStorage('userMessageCount',Mcount+1); console.log(url);