mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Reset send error on new operations only
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user