diff --git a/static/img/png/finlogo.png b/static/img/png/finlogo.png new file mode 100644 index 0000000..9539f39 Binary files /dev/null and b/static/img/png/finlogo.png differ diff --git a/static/js/chat_socket_functions/etc_operations_for_chat_socket.js b/static/js/chat_socket_functions/etc_operations_for_chat_socket.js index 200fbd2..81b3d16 100644 --- a/static/js/chat_socket_functions/etc_operations_for_chat_socket.js +++ b/static/js/chat_socket_functions/etc_operations_for_chat_socket.js @@ -6,10 +6,13 @@ function update_count_unread_messages (data) { let list_unrd_parent = document.querySelectorAll(".icon_unread_messages") let i = 0 for (i;i < list_unrd.length;i++){ + if (!list_unrd_parent[i].classList.contains("showed")){ list_unrd_parent[i].classList.toggle("showed") - } - list_unrd[i].innerHTML = data.unread_msgs_count.toString() + } else if(list_unrd[i].innerHTML === ''){ + list_unrd[i].innerHTML = data.unread_msgs_count.toString() + } list_unrd[i].innerHTML++ + } } }