Revert "Limit number of pushed add/delete"

This reverts commit 0529d4b09d.
pull/187/head
M66B 4 years ago
parent 0529d4b09d
commit e82b7b6725

@ -150,7 +150,7 @@ class Core {
private static final long LOCAL_RETRY_DELAY = 5 * 1000L; // milliseconds
private static final int TOTAL_RETRY_MAX = LOCAL_RETRY_MAX * 5;
private static final int MAX_PREVIEW = 5000; // characters
static final int MAX_FETCH = 100;
private static final int MAX_FETCH = 100;
static void processOperations(
Context context,

@ -1166,13 +1166,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
try {
db.beginTransaction();
if (e.getMessages().length > Core.MAX_FETCH)
EntityOperation.sync(ServiceSynchronize.this, folder.id, false);
else
for (Message imessage : e.getMessages()) {
long uid = ifolder.getUID(imessage);
EntityOperation.queue(ServiceSynchronize.this, folder, EntityOperation.FETCH, uid);
}
for (Message imessage : e.getMessages()) {
long uid = ifolder.getUID(imessage);
EntityOperation.queue(ServiceSynchronize.this, folder, EntityOperation.FETCH, uid);
}
db.setTransactionSuccessful();
} finally {
@ -1198,13 +1195,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
try {
db.beginTransaction();
if (e.getMessages().length > Core.MAX_FETCH)
EntityOperation.sync(ServiceSynchronize.this, folder.id, false);
else
for (Message imessage : e.getMessages()) {
long uid = ifolder.getUID(imessage);
EntityOperation.queue(ServiceSynchronize.this, folder, EntityOperation.FETCH, uid, true);
}
for (Message imessage : e.getMessages()) {
long uid = ifolder.getUID(imessage);
EntityOperation.queue(ServiceSynchronize.this, folder, EntityOperation.FETCH, uid, true);
}
db.setTransactionSuccessful();
} finally {

Loading…
Cancel
Save