1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 17:27:00 +00:00

Reset outbox on boot

This commit is contained in:
M66B 2020-09-26 18:14:47 +02:00
parent df5f6314b2
commit f9983ead6f

View file

@ -710,6 +710,10 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
int operations = db.operation().getOperations(outbox.id).size();
if (operations > 0)
start(context);
else {
db.folder().setFolderState(outbox.id, null);
db.folder().setFolderSyncState(outbox.id, null);
}
}
} catch (Throwable ex) {
Log.e(ex);