1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:55:55 +00:00

rpc, catchupfeed: return counters immediately so that frontend can figure out next unread feed correctly

This commit is contained in:
Andrew Dolgov
2019-01-03 10:47:41 +03:00
parent f44c6d01b0
commit 0517b88cce

View File

@@ -424,7 +424,10 @@ class RPC extends Handler_Protected {
Feeds::catchup_feed($feed_id, $is_cat, false, $mode, [$search_query, $search_lang]); Feeds::catchup_feed($feed_id, $is_cat, false, $mode, [$search_query, $search_lang]);
print json_encode(array("message" => "UPDATE_COUNTERS")); // return counters here synchronously so that frontend can figure out next unread feed properly
print json_encode(['counters' => Counters::getAllCounters()]);
//print json_encode(array("message" => "UPDATE_COUNTERS"));
} }
function setpanelmode() { function setpanelmode() {
@@ -620,4 +623,4 @@ class RPC extends Handler_Protected {
print json_encode($rv); print json_encode($rv);
} }
} }