offline: try to download status of articles which were marked as read in online while offline client was disconnected

This commit is contained in:
Andrew Dolgov 2009-02-07 15:00:03 +03:00
parent 046a2e3cff
commit 7f4f9f4e82
3 changed files with 15 additions and 4 deletions

View File

@ -588,8 +588,6 @@ function parse_counters(reply, scheduled_call) {
} */
}
update_local_sync_data();
} catch (e) {
exception_error("parse_counters", e);
}

View File

@ -564,6 +564,19 @@
}
}
/* Maybe we need to further update local DB for this client */
$query = "SELECT ref_id,unread FROM ttrss_user_entries
WHERE last_read >= '$last_online' AND
owner_uid = ".$_SESSION["uid"];
$result = db_query($link, $query);
while ($line = db_fetch_assoc($result)) {
print "<sync-ok id=\"".$line["ref_id"]."\"/>";
}
}
}

View File

@ -734,10 +734,10 @@ function offline_download_parse(stage, transport) {
"updated < DATETIME('NOW', 'localtime', '-31 days')");
}
update_local_sync_data();
}
update_local_sync_data();
// notify('');
}