mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Reset send error on new operations only
This commit is contained in:
parent
08f0936e4c
commit
e0b34f60bb
1 changed files with 4 additions and 1 deletions
|
@ -274,11 +274,14 @@ public class ServiceSend extends ServiceBase {
|
||||||
DB db = DB.getInstance(this);
|
DB db = DB.getInstance(this);
|
||||||
EntityFolder outbox = db.folder().getOutbox();
|
EntityFolder outbox = db.folder().getOutbox();
|
||||||
try {
|
try {
|
||||||
db.folder().setFolderError(outbox.id, null);
|
|
||||||
db.folder().setFolderSyncState(outbox.id, "syncing");
|
db.folder().setFolderSyncState(outbox.id, "syncing");
|
||||||
|
|
||||||
List<TupleOperationEx> ops = db.operation().getOperations(outbox.id);
|
List<TupleOperationEx> ops = db.operation().getOperations(outbox.id);
|
||||||
Log.i(outbox.name + " pending operations=" + ops.size());
|
Log.i(outbox.name + " pending operations=" + ops.size());
|
||||||
|
|
||||||
|
if (ops.size() > 0)
|
||||||
|
db.folder().setFolderError(outbox.id, null);
|
||||||
|
|
||||||
for (EntityOperation op : ops) {
|
for (EntityOperation op : ops) {
|
||||||
EntityMessage message = null;
|
EntityMessage message = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue