From 8e07b3c304ac822650ee2a217e1012e2257c95e9 Mon Sep 17 00:00:00 2001 From: borissedw Date: Tue, 15 Aug 2023 15:20:37 +0300 Subject: [PATCH 1/2] 0.0.142 --- static/js/user_profile(boris).js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index 771a414..3d9e13e 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -187,6 +187,7 @@ function selectedUserMessenger (ticket_id=null,user_id=null){ document.querySelector(".info_profile").innerHTML = data.html; document.querySelector(".enter-message-inp").focus() + document.querySelector(".tab_user_messanger.select").scrollIntoView() }, error: function (data){ From 7cbe8db36612db1fde40d522d645899caae03918 Mon Sep 17 00:00:00 2001 From: borissedw Date: Tue, 15 Aug 2023 15:25:28 +0300 Subject: [PATCH 2/2] 0.0.143 --- static/js/chat_sockets.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index 8187de7..6a7d58c 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -49,9 +49,11 @@ const chatSocket = new WebSocket(url); function sendMessageSocket (data) { chatSocket.send(JSON.stringify(data)); - let el_tab = document.querySelector(".tab_user_messanger.select") - if (el_tab !== null){ - el_tab.querySelector(".last-message-messenger-user-tab").innerHTML = data['text'] + if (!data.ticket_id){ + let el_tab = document.querySelector(".tab_user_messanger.select") + if (el_tab !== null){ + el_tab.querySelector(".last-message-messenger-user-tab").innerHTML = data['text'] + } } }