POP3: update quick sync count after sync

pull/204/head
M66B 3 years ago
parent 709a1b9b35
commit caa92df583

@ -2385,9 +2385,6 @@ class Core {
" sync=" + sync + " sync=" + sync +
" uidl=" + hasUidl); " uidl=" + hasUidl);
folder.last_sync_count = imessages.length;
db.folder().setFolderLastSyncCount(folder.id, folder.last_sync_count);
if (sync) { if (sync) {
// Index IDs // Index IDs
Map<String, String> uidlMsgId = new HashMap<>(); Map<String, String> uidlMsgId = new HashMap<>();
@ -2645,6 +2642,8 @@ class Core {
} }
} }
folder.last_sync_count = imessages.length;
db.folder().setFolderLastSyncCount(folder.id, folder.last_sync_count);
db.folder().setFolderLastSync(folder.id, new Date().getTime()); db.folder().setFolderLastSync(folder.id, new Date().getTime());
EntityLog.log(context, account.name + " POP done"); EntityLog.log(context, account.name + " POP done");
} finally { } finally {

Loading…
Cancel
Save