mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
scroll down on new msg
This commit is contained in:
parent
7aab15c1dc
commit
d31165b082
@ -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);
|
||||
}});
|
||||
|
Loading…
Reference in New Issue
Block a user