diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js
index 3d41946bb..8151425e1 100644
--- a/files/assets/js/chat.js
+++ b/files/assets/js/chat.js
@@ -176,4 +176,8 @@ socket.on('typing', function (users){
}
})
-box.scrollTo(0, box.scrollHeight)
\ No newline at end of file
+function scroll_chat() {
+ box.scrollTo(0, box.scrollHeight)
+}
+
+scroll_chat()
\ No newline at end of file
diff --git a/files/templates/chat.html b/files/templates/chat.html
index f3d66b8d6..ea0c0f24c 100644
--- a/files/templates/chat.html
+++ b/files/templates/chat.html
@@ -190,7 +190,7 @@
-
+
@@ -214,6 +214,6 @@
-
+