9
This commit is contained in:
@@ -108,11 +108,12 @@ 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"))
|
||||
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')
|
||||
if (!window.location.href.includes("chat") || !window.location.href.includes("chat")){
|
||||
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')
|
||||
}
|
||||
}
|
||||
}
|
||||
update_count_unread_messages(data)
|
||||
|
||||
Reference in New Issue
Block a user