viewfeed: update local db on catchup

master
Andrew Dolgov 16 years ago
parent 71af6d3609
commit 6161d5cc87

@ -186,6 +186,8 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
if (subop == "MarkAllRead") { if (subop == "MarkAllRead") {
catchup_local_feed(feed, is_cat);
var show_next_feed = getInitParam("on_catchup_show_next_feed") == "1"; var show_next_feed = getInitParam("on_catchup_show_next_feed") == "1";
if (show_next_feed) { if (show_next_feed) {

@ -1272,6 +1272,8 @@ function update_local_sync_data() {
function catchup_local_feed(id, is_cat) { function catchup_local_feed(id, is_cat) {
try { try {
if (!db) return;
if (!is_cat) { if (!is_cat) {
if (id >= 0) { if (id >= 0) {
db.execute("UPDATE articles SET unread = 0 WHERE feed_id = ?", [id]); db.execute("UPDATE articles SET unread = 0 WHERE feed_id = ?", [id]);

Loading…
Cancel
Save