mirror of https://github.com/M66B/FairEmail.git
Reset last connected time on disable from list
This commit is contained in:
parent
bce33a421a
commit
c9de9a2e96
|
@ -381,6 +381,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|||
if (!sync) {
|
||||
db.account().setAccountWarning(id, null);
|
||||
db.account().setAccountError(id, null);
|
||||
db.account().setAccountConnected(id, null);
|
||||
}
|
||||
|
||||
db.account().setAccountSynchronize(id, sync);
|
||||
|
|
|
@ -149,7 +149,7 @@ public interface DaoAccount {
|
|||
int setAccountPassword(long id, String password);
|
||||
|
||||
@Query("UPDATE account SET last_connected = :last_connected WHERE id = :id AND NOT (last_connected IS :last_connected)")
|
||||
int setAccountConnected(long id, long last_connected);
|
||||
int setAccountConnected(long id, Long last_connected);
|
||||
|
||||
@Query("UPDATE account SET backoff_until = :backoff_until WHERE id = :id AND NOT (backoff_until IS :backoff_until)")
|
||||
int setAccountBackoff(long id, Long backoff_until);
|
||||
|
|
Loading…
Reference in New Issue