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); $('#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() {