mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 15:40:59 +01:00
Allow disabling account sync without internet connection
This commit is contained in:
@@ -95,15 +95,12 @@ public interface DaoFolder {
|
||||
@Query("UPDATE folder SET type = :type WHERE id = :id")
|
||||
int setFolderType(long id, String type);
|
||||
|
||||
@Query("UPDATE folder SET type = '" + EntityFolder.USER + "' WHERE type = :type")
|
||||
int setFolderUser(String type);
|
||||
|
||||
@Query("UPDATE folder SET synchronize = :synchronize, after = :after WHERE id = :id")
|
||||
int setFolderProperties(long id, boolean synchronize, int after);
|
||||
|
||||
@Query("DELETE FROM folder WHERE account= :account AND name = :name")
|
||||
void deleteFolder(Long account, String name);
|
||||
|
||||
@Query("DELETE FROM folder" +
|
||||
" WHERE account= :account" +
|
||||
" AND type <> '" + EntityFolder.INBOX + "'" +
|
||||
" AND type <> '" + EntityFolder.USER + "'")
|
||||
int deleteSystemFolders(Long account);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user