diff --git a/classes/rpc.php b/classes/rpc.php index b2184d8ec..7220e10ea 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -424,7 +424,10 @@ class RPC extends Handler_Protected { 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() { @@ -620,4 +623,4 @@ class RPC extends Handler_Protected { print json_encode($rv); } -} \ No newline at end of file +}