mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
External enable/disable by toggling on demand
This commit is contained in:
@@ -130,6 +130,9 @@ public interface DaoAccount {
|
||||
@Query("UPDATE account SET synchronize = :synchronize WHERE id = :id AND NOT (synchronize IS :synchronize)")
|
||||
int setAccountSynchronize(long id, boolean synchronize);
|
||||
|
||||
@Query("UPDATE account SET ondemand = :ondemand WHERE id = :id AND NOT (ondemand IS :ondemand)")
|
||||
int setAccountOnDemand(long id, boolean ondemand);
|
||||
|
||||
@Query("UPDATE account SET `primary` = :primary WHERE id = :id AND NOT (`primary` IS :primary)")
|
||||
int setAccountPrimary(long id, boolean primary);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user