diff options
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/ContentController.js | 17 | ||||
-rw-r--r-- | js/controller/NavigationController.js | 13 |
2 files changed, 4 insertions, 26 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index b0478f0c4..15459c01b 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -90,10 +90,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou if (!item.keepUnread && item.unread === true) { ItemResource.markItemRead(itemId); - if (item.isShared === false) { - // feeds containing shared items aren't in our cache - FeedResource.markItemOfFeedRead(item.feedId); - } + FeedResource.markItemOfFeedRead(item.feedId); } }; @@ -105,10 +102,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou var item = ItemResource.get(itemId); if (!item.unread) { ItemResource.markItemRead(itemId, false); - if (item.isShared === false) { - // feeds containing shared items aren't in our cache - FeedResource.markItemOfFeedUnread(item.feedId); - } + FeedResource.markItemOfFeedUnread(item.feedId); } item.keepUnread = !item.keepUnread; @@ -143,11 +137,8 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou itemIds.forEach(function (itemId) { var item = ItemResource.get(itemId); if (!item.keepUnread) { - if (item.isShared === false) { - // feeds containing shared items aren't in our cache - ids.push(itemId); - feedIds.push(item.feedId); - } + ids.push(itemId); + feedIds.push(item.feedId); } }); diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index ec86ff01a..68a46900e 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -113,14 +113,6 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource return this.getStarredCount() > 0; }; - this.getSharedCount = function () { - return ItemResource.getSharedCount(); - }; - - this.isSharedUnread = function () { - return this.getSharedCount() > 0; - }; - this.toggleFolder = function (folderName) { FolderResource.toggleOpen(folderName); }; @@ -158,11 +150,6 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource $route.current.$$route.type === FEED_TYPE.STARRED; }; - this.isSharedActive = function () { - return $route.current && - $route.current.$$route.type === FEED_TYPE.SHARED; - }; - this.isExploreActive = function () { return $route.current && $route.current.$$route.type === FEED_TYPE.EXPLORE; |