diff --git a/chatto/src/main/resources/static/js/chat.js b/chatto/src/main/resources/static/js/chat.js index 84a10ba..692d8ba 100644 --- a/chatto/src/main/resources/static/js/chat.js +++ b/chatto/src/main/resources/static/js/chat.js @@ -237,9 +237,10 @@ function populateMessages(userName, passphrase) { } $(chatAreaNew).append(DOMPurify.sanitize(msgContainer)); + scrollChatAreaAnimated(2400); }) - scrollChatAreaAnimated(2400); + });