Refresh Feeds row when feed unread count is updated

Regression from fd744fb526
This commit is contained in:
Dan Stillman 2023-04-15 05:40:54 -04:00
parent 2397940292
commit 348083d287

View file

@ -640,10 +640,16 @@ var CollectionTree = class CollectionTree extends LibraryTree {
return;
}
if (type == 'feed' && (action == 'unreadCountUpdated' || action == 'statusChanged')) {
// Refresh the feed
let feedRow = this.getRowIndexByID("L" + ids[0]);
if (feedRow !== false) {
this.tree.invalidateRow(feedRow);
}
// Refresh the Feeds row
let feedsRow = this.getRowIndexByID("F1");
if (feedsRow !== false) {
this.tree.invalidateRow(feedsRow);
}
return;
}