Bulletproofing of markRead and findNewestVisibleUnread

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-01 15:47:55 -07:00
parent 1775e97bcd
commit ec22445f75
2 changed files with 10 additions and 19 deletions

View file

@ -427,7 +427,7 @@
var viewportBottom = this.view.outerHeight;
var unreadCount = this.model.get('unreadCount');
if (unreadCount < 1) {
if (!unreadCount || unreadCount < 1) {
return;
}