mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Reset account/identity/folder error on save
This commit is contained in:
@@ -728,12 +728,12 @@ public class FragmentAccount extends FragmentEx {
|
||||
|
||||
if (!update)
|
||||
account.created = now;
|
||||
|
||||
account.error = null;
|
||||
|
||||
if (synchronize)
|
||||
account.last_connected = now;
|
||||
|
||||
if (!synchronize)
|
||||
account.error = null;
|
||||
|
||||
if (account.primary)
|
||||
db.account().resetPrimary();
|
||||
|
||||
|
||||
@@ -222,12 +222,10 @@ public class FragmentFolder extends FragmentEx {
|
||||
display, unified, notify, hide,
|
||||
synchronize, poll, download,
|
||||
sync_days, keep_days);
|
||||
db.folder().setFolderError(id, null);
|
||||
|
||||
db.message().deleteMessagesBefore(id, keep_time, true);
|
||||
|
||||
if (!synchronize)
|
||||
db.folder().setFolderError(id, null);
|
||||
|
||||
EntityOperation.sync(db, folder.id);
|
||||
}
|
||||
|
||||
|
||||
@@ -516,9 +516,7 @@ public class FragmentIdentity extends FragmentEx {
|
||||
identity.primary = (identity.synchronize && primary);
|
||||
identity.store_sent = false;
|
||||
identity.sent_folder = (sent == null ? null : sent.id);
|
||||
|
||||
if (!identity.synchronize)
|
||||
identity.error = null;
|
||||
identity.error = null;
|
||||
|
||||
if (identity.primary)
|
||||
db.identity().resetPrimary();
|
||||
|
||||
Reference in New Issue
Block a user