hopefully fixes qvitter getting stuck loading newer on error (e.g. connection going down)
This commit is contained in:
parent
88d7b5037d
commit
155195c529
|
@ -2156,10 +2156,9 @@ function checkForNewQueets() {
|
||||||
if(window.loggedIn && (window.currentStreamObject.type == 'notices' || window.currentStreamObject.type == 'notifications')) {
|
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 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 addThisStream = window.currentStreamObject.stream;
|
||||||
var timeNow = new Date().getTime();
|
|
||||||
getFromAPI(addThisStream + qOrAmp(window.currentStreamObject.stream) + 'since_id=' + lastId,function(data){
|
getFromAPI(addThisStream + qOrAmp(window.currentStreamObject.stream) + 'since_id=' + lastId,function(data){
|
||||||
if(data) {
|
|
||||||
$('body').removeClass('loading-newer');
|
$('body').removeClass('loading-newer');
|
||||||
|
if(data) {
|
||||||
if(addThisStream == window.currentStreamObject.stream) {
|
if(addThisStream == window.currentStreamObject.stream) {
|
||||||
addToFeed(data, false, 'hidden');
|
addToFeed(data, false, 'hidden');
|
||||||
|
|
||||||
|
@ -2179,7 +2178,6 @@ function checkForNewQueets() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ·
|
/* ·
|
||||||
·
|
·
|
||||||
· Show hidden queets when user clicks on new-queets-bar
|
· Show hidden queets when user clicks on new-queets-bar
|
||||||
|
|
Loading…
Reference in New Issue
Block a user