mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
Run operations for closed folders as batch / low priority
This commit is contained in:
@@ -1150,8 +1150,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
}
|
||||
});
|
||||
|
||||
boolean offline = (mapFolders.get(folder) == null);
|
||||
for (TupleOperationEx op : submit) {
|
||||
TupleOperationEx.PartitionKey key = op.getPartitionKey();
|
||||
TupleOperationEx.PartitionKey key = op.getPartitionKey(offline);
|
||||
if (!partitions.containsKey(key))
|
||||
partitions.put(key, new ArrayList<>());
|
||||
partitions.get(key).add(op);
|
||||
|
||||
Reference in New Issue
Block a user