Merge pull request 'Fix automatically showing next feed on catchup' (#25) from wn/tt-rss:bugfix/on-catchup-show-next-feed into master

Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/25
This commit is contained in:
fox 2021-03-26 13:54:41 +03:00
commit 0b82afabd5
1 changed files with 3 additions and 3 deletions

View File

@ -479,10 +479,10 @@ const Feeds = {
// only select next unread feed if catching up entirely (as opposed to last week etc) // only select next unread feed if catching up entirely (as opposed to last week etc)
if (show_next_feed && !mode) { if (show_next_feed && !mode) {
const nuf = this.getNextUnread(feed, is_cat); const [next_feed, next_is_cat] = this.getNextUnread(feed, is_cat);
if (nuf) { if (next_feed !== false) {
this.open({feed: nuf, is_cat: is_cat}); this.open({feed: next_feed, is_cat: next_is_cat});
} }
} else if (feed == this.getActive() && is_cat == this.activeIsCat()) { } else if (feed == this.getActive() && is_cat == this.activeIsCat()) {
this.reloadCurrent(); this.reloadCurrent();