11
This commit is contained in:
@@ -39,7 +39,16 @@ function wsReceiveData (e) {
|
||||
console.log(data)
|
||||
} else if (data.type === "update_chat") {
|
||||
let msg_cont = document.querySelector(".container-messages")
|
||||
|
||||
if (getInfoAboutUser('screen_width') < 800){
|
||||
if (!window.location.href.includes("chat") && !window.location.href.includes("support")){
|
||||
let marker_new_messages = document.querySelector(".marker_messages_mobile");
|
||||
if (marker_new_messages.classList.contains('hide')){
|
||||
marker_new_messages.classList.add('show')
|
||||
marker_new_messages.classList.remove('hide')
|
||||
}
|
||||
}
|
||||
}
|
||||
setCokie(365,'twb_new_messages',true)
|
||||
update_chat_html(data,msg_cont)
|
||||
// document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'end',inline:'end'});
|
||||
|
||||
@@ -108,7 +117,7 @@ function wsReceiveData (e) {
|
||||
}
|
||||
if (data.unread_msgs_count > 0){
|
||||
if (getInfoAboutUser('screen_width') < 800){
|
||||
if (!window.location.href.includes("chat") || !window.location.href.includes("chat")){
|
||||
if (!window.location.href.includes("chat") && !window.location.href.includes("support")){
|
||||
let marker_new_messages = document.querySelector(".marker_messages_mobile");
|
||||
if (marker_new_messages.classList.contains('hide')){
|
||||
marker_new_messages.classList.add('show')
|
||||
|
||||
Reference in New Issue
Block a user