mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Cloud sync: switches for send/receive
This commit is contained in:
@@ -288,11 +288,6 @@ public interface DaoAccount {
|
||||
" AND (NOT (swipe_left IS :left) OR NOT (swipe_right IS :right))")
|
||||
int setAccountSwipes(long id, Long left, Long right);
|
||||
|
||||
@Query("UPDATE account" +
|
||||
" SET last_modified = :last_modified" +
|
||||
" WHERE id = :id")
|
||||
int setLastModified(long id, Long last_modified);
|
||||
|
||||
@Query("UPDATE account SET `primary` = 0 WHERE NOT (`primary` IS 0)")
|
||||
void resetPrimary();
|
||||
|
||||
@@ -305,6 +300,11 @@ public interface DaoAccount {
|
||||
@Query("UPDATE account SET capability_uidl = :uidl WHERE id = :id AND NOT (capability_uidl IS :uidl)")
|
||||
int setAccountUidl(long id, Boolean uidl);
|
||||
|
||||
@Query("UPDATE account" +
|
||||
" SET last_modified = :last_modified" +
|
||||
" WHERE id = :id")
|
||||
int setAccountLastModified(long id, Long last_modified);
|
||||
|
||||
@Query("DELETE FROM account WHERE id = :id")
|
||||
int deleteAccount(long id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user