This commit is contained in:
SBD
2024-02-20 17:35:01 +03:00
parent c623d69767
commit fafee63a64
4 changed files with 35 additions and 2 deletions

View File

@@ -107,6 +107,14 @@ function wsReceiveData (e) {
update_support_chat_func(data,msg_cont)
}
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')
}
}
update_count_unread_messages(data)
}
if (data.required_beep === true) {