Commit 155195c5 authored by hannes's avatar hannes

hopefully fixes qvitter getting stuck loading newer on error (e.g. connection going down)

parent 88d7b503
......@@ -2156,10 +2156,9 @@ function checkForNewQueets() {
if(window.loggedIn && (window.currentStreamObject.type == 'notices' || window.currentStreamObject.type == 'notifications')) {
var lastId = $('#feed-body').children('.stream-item').not('.temp-post').not('.posted-from-form').attr('data-quitter-id-in-stream');
var addThisStream = window.currentStreamObject.stream;
var timeNow = new Date().getTime();
getFromAPI(addThisStream + qOrAmp(window.currentStreamObject.stream) + 'since_id=' + lastId,function(data){
$('body').removeClass('loading-newer');
if(data) {
$('body').removeClass('loading-newer');
if(addThisStream == window.currentStreamObject.stream) {
addToFeed(data, false, 'hidden');
......@@ -2179,7 +2178,6 @@ function checkForNewQueets() {
}
}
/* ·
·
· Show hidden queets when user clicks on new-queets-bar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment