mirror of https://github.com/M66B/FairEmail.git
Conditionally reset last connected on saving identity
This commit is contained in:
parent
c616e5847a
commit
fb8646f371
|
@ -577,6 +577,10 @@ public class FragmentIdentity extends FragmentBase {
|
|||
realm == null ? identityRealm != null : !realm.equals(identityRealm)));
|
||||
boolean reload = (identity == null || identity.synchronize != synchronize || check);
|
||||
|
||||
Long last_connected = null;
|
||||
if (identity != null && synchronize == identity.synchronize)
|
||||
last_connected = identity.last_connected;
|
||||
|
||||
// Check SMTP server
|
||||
if (check) {
|
||||
String transportType = (starttls ? "smtp" : "smtps");
|
||||
|
@ -630,6 +634,7 @@ public class FragmentIdentity extends FragmentBase {
|
|||
identity.store_sent = store_sent;
|
||||
identity.sent_folder = null;
|
||||
identity.error = null;
|
||||
identity.last_connected = last_connected;
|
||||
|
||||
if (identity.primary)
|
||||
db.identity().resetPrimary(account);
|
||||
|
|
Loading…
Reference in New Issue