on update only jump to bottom if we actually got a new message

This commit is contained in:
Mario Vavti 2016-04-01 11:13:04 +02:00
parent bbe93d0e1d
commit 5b55726a93

View File

@ -175,10 +175,9 @@ function update_chats(chats) {
$('#chatLineHolder').append(newNode);
$(".autotime").timeago();
});
var elem = document.getElementById('chatTopBar');
elem.scrollTop = elem.scrollHeight;
var elem = document.getElementById('chatTopBar');
elem.scrollTop = elem.scrollHeight;
});
}
function chatJotGetLink() {