From 3f82f42e1ecc926a43fc74a3bb180db1ef49cda6 Mon Sep 17 00:00:00 2001 From: sysadminix Date: Fri, 9 Aug 2024 18:52:23 +0300 Subject: [PATCH] add chatsocketfunctions from dev --- static/js/user_profile_2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 0153474..848c474 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -561,7 +561,6 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ } let user_type = getInfoAboutUser() - // update_count_unread_messages() // if (user_type === 'mobile' || user_type === 'laptop') { // open_curtain_w_contacts() @@ -582,7 +581,6 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ if (loader){ loader.classList.toggle("show") } - // update_count_unread_messages() // let left_curtain = document.querySelector('.curtain.left') document.querySelector(".info_profile").innerHTML = data.html; @@ -594,6 +592,9 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ let top = document.querySelector(".tab_user_messanger.select").offsetTop document.querySelector(".menu_buttons.curtain.left.open").scrollTo({top:top}) } + + update_count_unread_messages(data); + // second time beacause we need to close curtain // if (user_type === 'mobile' || user_type === 'laptop') { // open_curtain_w_contacts()