1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-11 20:15:03 -05:00

load the correct number of extra messages from the server instead of possibly doubling the count

This commit is contained in:
Samuel Sieb 2013-01-16 12:24:43 -08:00
parent bb153d045c
commit edc0c0dc5e

View File

@ -866,7 +866,7 @@ public class MessagingController implements Runnable {
LocalStore localStore = account.getLocalStore();
LocalFolder localFolder = localStore.getFolder(folder);
if (localFolder.getVisibleLimit() > 0) {
localFolder.setVisibleLimit(localFolder.getVisibleLimit() + localFolder.getMessageCount());
localFolder.setVisibleLimit(localFolder.getVisibleLimit() + account.getDisplayCount());
}
synchronizeMailbox(account, folder, listener, null);
} catch (MessagingException me) {