mirror of
https://github.com/moparisthebest/mail
synced 2025-01-11 13:38:02 -05:00
get 100 last messages on sync
This commit is contained in:
parent
7b16d6b713
commit
791c318c8f
@ -6,8 +6,8 @@ define(function(require) {
|
|||||||
emailDao;
|
emailDao;
|
||||||
|
|
||||||
var MailListCtrl = function($scope) {
|
var MailListCtrl = function($scope) {
|
||||||
var offset = -6,
|
var offset = 0,
|
||||||
num = 0;
|
num = 100;
|
||||||
|
|
||||||
// show inbox at the beginning
|
// show inbox at the beginning
|
||||||
$scope.folder = 'INBOX';
|
$scope.folder = 'INBOX';
|
||||||
@ -44,8 +44,8 @@ define(function(require) {
|
|||||||
// sync from imap to local db
|
// sync from imap to local db
|
||||||
syncImapFolder({
|
syncImapFolder({
|
||||||
folder: $scope.folder,
|
folder: $scope.folder,
|
||||||
offset: offset,
|
offset: -num,
|
||||||
num: num
|
num: offset
|
||||||
}, function() {
|
}, function() {
|
||||||
// list again from local db after syncing
|
// list again from local db after syncing
|
||||||
listLocalMessages({
|
listLocalMessages({
|
||||||
|
Loading…
Reference in New Issue
Block a user