diff --git a/static/js/check_new_messages.js b/static/js/check_new_messages.js index 1a2141d..e157d7d 100644 --- a/static/js/check_new_messages.js +++ b/static/js/check_new_messages.js @@ -98,10 +98,14 @@ function success_check_new_messages (data) { document.querySelector(".container-messages").innerHTML = data.html; } } + if (data.upd_right_panel === true){ + document.querySelector(".block-list-of-users") + } } if (data.required_beep === true){ - const beep = new Audio('/static/sounds/beep.MP3') + const beep = new Audio('/static/sounds/beep_2.mp3') beep.play() } + } diff --git a/static/sounds/beep_2.mp3 b/static/sounds/beep_2.mp3 new file mode 100644 index 0000000..1b4a8d3 Binary files /dev/null and b/static/sounds/beep_2.mp3 differ diff --git a/templates/blocks/profile/b_chats.html b/templates/blocks/profile/b_chats.html index 8ba34e8..4553941 100644 --- a/templates/blocks/profile/b_chats.html +++ b/templates/blocks/profile/b_chats.html @@ -67,11 +67,5 @@