diff --git a/static/js/check_new_messages.js b/static/js/check_new_messages.js index f457de2..954e3a5 100644 --- a/static/js/check_new_messages.js +++ b/static/js/check_new_messages.js @@ -35,9 +35,10 @@ function check_window_tm(){ let intervl = setInterval(function () { window = document.querySelector(".container-messages") - if (window !== null){ - clearInterval(intervl) - checkOpenWindow(window) + if (window === null){ + + } else { + } }, 1000) diff --git a/templates/blocks/profile/b_chats.html b/templates/blocks/profile/b_chats.html index d362b0f..745a263 100644 --- a/templates/blocks/profile/b_chats.html +++ b/templates/blocks/profile/b_chats.html @@ -51,7 +51,7 @@ -
+
{% include "blocks/profile/b_messages_container.html" %}
diff --git a/templates/blocks/profile/b_support_chat.html b/templates/blocks/profile/b_support_chat.html index 4ee69a9..ad66295 100644 --- a/templates/blocks/profile/b_support_chat.html +++ b/templates/blocks/profile/b_support_chat.html @@ -41,7 +41,7 @@ {# {% endfor %}#} {# {% endif %}#} {#
#} -
+
{% include "blocks/profile/b_messages_container.html" %}