mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +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);
|
||||
EntityFolder outbox = db.folder().getOutbox();
|
||||
try {
|
||||
db.folder().setFolderError(outbox.id, null);
|
||||
db.folder().setFolderSyncState(outbox.id, "syncing");
|
||||
|
||||
List<TupleOperationEx> ops = db.operation().getOperations(outbox.id);
|
||||
Log.i(outbox.name + " pending operations=" + ops.size());
|
||||
|
||||
if (ops.size() > 0)
|
||||
db.folder().setFolderError(outbox.id, null);
|
||||
|
||||
for (EntityOperation op : ops) {
|
||||
EntityMessage message = null;
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue