mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Reset outbox on boot
This commit is contained in:
parent
df5f6314b2
commit
f9983ead6f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue