0.0.156
This commit is contained in:
@@ -6,5 +6,6 @@ function inital_old_tab (){
|
||||
let dataset = el_tab.dataset;
|
||||
old_item_tab_user = dataset['curReceiverItem'];
|
||||
}
|
||||
return old_item_tab_user
|
||||
let old_item_tab_user_list = [el_tab,old_item_tab_user]
|
||||
return old_item_tab_user_list
|
||||
}
|
||||
@@ -16,7 +16,7 @@ function update_chat_html (data,msg_cont) {
|
||||
}
|
||||
|
||||
|
||||
function update_list_w_users (data,old_item_tab_user) {
|
||||
function update_list_w_users (data,old_item_tab_user,el_tab) {
|
||||
let list_of_users = document.querySelector(".block-list-of-users")
|
||||
if (list_of_users) {
|
||||
|
||||
|
||||
@@ -16,7 +16,9 @@ function sendMessageSocket (data) {
|
||||
|
||||
chatSocket.onmessage = function (e) {
|
||||
|
||||
let old_item_tab_user = inital_old_tab()
|
||||
let old_item_tab_user_list = inital_old_tab()
|
||||
let old_item_tab_user = old_item_tab_user_list[0]
|
||||
let el_tab = old_item_tab_user_list[1]
|
||||
let data = JSON.parse(e.data);
|
||||
console.log('Data:', data);
|
||||
console.log("return")
|
||||
@@ -39,7 +41,7 @@ chatSocket.onmessage = function (e) {
|
||||
|
||||
update_tickets_operations_manager(data,old_item_tab_user,null,'wo')
|
||||
|
||||
update_list_w_users(data,old_item_tab_user)
|
||||
update_list_w_users(data,old_item_tab_user,el_tab)
|
||||
|
||||
|
||||
} else if (data.type === "update_support_chat"){
|
||||
|
||||
Reference in New Issue
Block a user