This commit is contained in:
SBD
2024-02-20 18:57:17 +03:00
parent 98665abf4d
commit c146bd6155
6 changed files with 31 additions and 13 deletions

View File

@@ -83,16 +83,19 @@ function select_tab_profile (el,url,owner_type=null) {
if (window.location.href.includes("profile")){
selectTabProfileIfHisNotSelected(url)
}
if (getInfoAboutUser('screen_width') < 800){
let marker_new_messages = document.querySelector(".marker_messages_mobile");
if (marker_new_messages.classList.contains('show')){
marker_new_messages.classList.remove('show')
marker_new_messages.classList.add('hide')
}
}
deleteMarkerMessages(el)
checkStatesAfterTransitionToAnotherTabProfile()
goToChatIfChat()
if (window.location.href.includes("chat") || window.location.href.includes("chat")) {
if (getInfoAboutUser('screen_width') < 800) {
let marker_new_messages = document.querySelector(".marker_messages_mobile");
if (marker_new_messages.classList.contains('show')) {
marker_new_messages.classList.remove('show')
marker_new_messages.classList.add('hide')
}
}
}
setCokie(365,'twb_new_messages','false')
},
error: function (data){
console.log(data)