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;
|
||||
|
||||
var MailListCtrl = function($scope) {
|
||||
var offset = -6,
|
||||
num = 0;
|
||||
var offset = 0,
|
||||
num = 100;
|
||||
|
||||
// show inbox at the beginning
|
||||
$scope.folder = 'INBOX';
|
||||
@ -44,8 +44,8 @@ define(function(require) {
|
||||
// sync from imap to local db
|
||||
syncImapFolder({
|
||||
folder: $scope.folder,
|
||||
offset: offset,
|
||||
num: num
|
||||
offset: -num,
|
||||
num: offset
|
||||
}, function() {
|
||||
// list again from local db after syncing
|
||||
listLocalMessages({
|
||||
|
Loading…
Reference in New Issue
Block a user