(js) Fix UIDs range when preloading messages

pull/201/head
Francis Lachapelle 2016-02-23 10:23:51 -05:00
parent 696aff84cb
commit a838871361
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@
}
else
// Next messages not load; preload more headers further down
endIndex = Math.min(startIndex + Mailbox.PRELOAD.SIZE, max);
endIndex = Math.min(startIndex + Mailbox.PRELOAD.SIZE, max - 1);
if (!angular.isDefined(this.$messages[startIndex].subject) &&
!angular.isDefined(this.$messages[startIndex].loading) ||