1.1.40 show/hide unanswered_msgs_count

This commit is contained in:
2024-07-18 12:53:04 +03:00
parent f61482ded6
commit 87b21c5f55
2 changed files with 8 additions and 1 deletions

View File

@@ -15,6 +15,10 @@ function update_count_unread_messages(data) {
list_unrd_parent[i].classList.toggle("showed");
}
}
} else if(data.unanswered_msgs_count){
for (let i = 0; i < list_unrd.length; i++){
list_unrd[i].innerHTML = data.unanswered_msgs_count.toString()
}
} else {
for (let i = 0; i < list_unrd.length; i++) {
let current_count = parseInt(list_unrd[i].innerHTML);