on update only jump to bottom if we actually got a new message
This commit is contained in:
parent
bbe93d0e1d
commit
5b55726a93
@ -175,10 +175,9 @@ function update_chats(chats) {
|
|||||||
$('#chatLineHolder').append(newNode);
|
$('#chatLineHolder').append(newNode);
|
||||||
$(".autotime").timeago();
|
$(".autotime").timeago();
|
||||||
|
|
||||||
});
|
var elem = document.getElementById('chatTopBar');
|
||||||
var elem = document.getElementById('chatTopBar');
|
elem.scrollTop = elem.scrollHeight;
|
||||||
elem.scrollTop = elem.scrollHeight;
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function chatJotGetLink() {
|
function chatJotGetLink() {
|
||||||
|
Reference in New Issue
Block a user