rather than fetching 10 messages on push reconnect, fetch a full

compelment of displayable messages. This should help eliminate "Gaps"
when reconnecting push connections after going offline.
This commit is contained in:
Jesse Vincent 2010-04-26 16:20:43 +00:00
parent ac36016b86
commit 55d70c3bf7

View file

@ -2635,9 +2635,9 @@ public class ImapStore extends Store
handleUntaggedResponses(responses);
}
int startUid = oldUidNext;
if (startUid < uidNext - 10)
if (startUid < uidNext - mAccount.getDisplayCount())
{
startUid = uidNext - 10;
startUid = uidNext - mAccount.getDisplayCount();
}
if (startUid < 1)
{