mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Fixed outbox sync
This commit is contained in:
@@ -99,7 +99,7 @@ public class EntityOperation {
|
||||
queue(context, db, message, name, jargs);
|
||||
}
|
||||
|
||||
static void sync(DB db, long fid) {
|
||||
static void sync(Context context, DB db, long fid) {
|
||||
if (db.operation().getOperationCount(fid, EntityOperation.SYNC) == 0) {
|
||||
|
||||
EntityFolder folder = db.folder().getFolder(fid);
|
||||
@@ -114,6 +114,9 @@ public class EntityOperation {
|
||||
|
||||
db.folder().setFolderSyncState(fid, "requested");
|
||||
|
||||
if (folder.account == null) // Outbox
|
||||
context.startService(new Intent(context, ServiceSend.class));
|
||||
|
||||
Log.i("Queued sync folder=" + folder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user