(js) Fix UIDs range when preloading messages
This commit is contained in:
parent
696aff84cb
commit
a838871361
|
@ -339,7 +339,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
// Next messages not load; preload more headers further down
|
// 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) &&
|
if (!angular.isDefined(this.$messages[startIndex].subject) &&
|
||||||
!angular.isDefined(this.$messages[startIndex].loading) ||
|
!angular.isDefined(this.$messages[startIndex].loading) ||
|
||||||
|
|
Loading…
Reference in a new issue