scroll down on new msg

This commit is contained in:
Martti Malmi 2020-01-17 16:01:06 +02:00
parent 7aab15c1dc
commit d31165b082

View File

@ -497,6 +497,7 @@ function addChat(pub, chatLink) {
if (chats[pub].latest.time === msg.time && document.visibilityState === 'visible') {
chats[pub].setMyMsgsLastSeenTime();
}
$('#message-view').scrollTop($('#message-view')[0].scrollHeight - $('#message-view')[0].clientHeight);
}
notify(msg, info, pub);
}});