This commit is contained in:
2023-08-09 14:39:14 +03:00
parent 3fc9f42378
commit cc74155226
2 changed files with 10 additions and 3 deletions

View File

@@ -20,8 +20,7 @@ function check_new_messages_timeout(){
}
check_msg = setInterval(function () {
sessionStorage.setItem('online',user_online)
let new_message = getNewMessageSession()
// let new_message = getNewMessageSession()
let user_online = userOnline('set')
window = document.querySelector(".container-messages")
if (window === null){
@@ -31,7 +30,7 @@ function check_new_messages_timeout(){
check_new_messages(window,it)
}
},
60000)
10000)
}
@@ -72,6 +71,7 @@ function check_new_messages (window,it){
// enctype: 'json',
data: JSON.stringify(data_new_messages),
success: function(data){
getNewMessageSession()
success_check_new_messages(data)
},