summaryrefslogtreecommitdiffstats
path: root/js/public/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-29 13:29:52 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-29 13:30:02 +0200
commit28c64c842f4053b5e14e063631bbe7de5108c139 (patch)
treebb2599019c801d39c221c868271dd08b8110ea91 /js/public/app.js
parent3fc18156ae0b586e8de0c82949acfa6291317536 (diff)
dont mark feed read if newest item id is 0
Diffstat (limited to 'js/public/app.js')
-rw-r--r--js/public/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/public/app.js b/js/public/app.js
index bc9a9b7b0..86aa989db 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -860,7 +860,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
feed = this._feedModel.getById(feedId);
newestItemId = this._newestItem.getId();
- if (angular.isDefined(feed) && angular.isDefined(newestItemId)) {
+ if (angular.isDefined(feed) && newestItemId !== 0) {
feed.unreadCount = 0;
this._persistence.setFeedRead(feedId, newestItemId);
_ref = this._itemModel.getAll();