From 3f7f629eeb3ea5c62db2e44a7a919d3bcfaf55ee Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 25 Oct 2021 19:50:49 -0400 Subject: [PATCH] chat: Scroll down after the `chatNewMessage` hook finishes --- src/static/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/chat.js b/src/static/js/chat.js index f91623a31..2df78b614 100755 --- a/src/static/js/chat.js +++ b/src/static/js/chat.js @@ -202,8 +202,8 @@ exports.chat = (() => { }); } } + if (!isHistoryAdd) this.scrollDown(); }); - if (!isHistoryAdd) this.scrollDown(); }, init(pad) { this._pad = pad;