Handle pending read with unread count

This commit is contained in:
Marcus Noble 2020-11-10 15:58:02 +00:00
parent 3f20bd1cd3
commit 33d91402fd
1 changed files with 2 additions and 2 deletions

View File

@ -152,13 +152,13 @@
}
},
unread() {
return this.items.filter(item => !item.Read).length;
return this.items.filter(item => !item.Read && !item.PendingRead).length;
},
saved() {
return this.savedItems.length;
},
unreadCounts() {
return this.items.filter(item => !item.Read).reduce((acc, item) => {
return this.items.filter(item => !item.Read && !item.PendingRead).reduce((acc, item) => {
if (!acc[item.FeedID]) acc[item.FeedID] = 0;
acc[item.FeedID]++;
return acc;