mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Added unified folder types
This commit is contained in:
@@ -154,6 +154,15 @@ public interface DaoFolder {
|
||||
" AND type <> '" + EntityFolder.USER + "'")
|
||||
List<EntityFolder> getSystemFolders(long account);
|
||||
|
||||
@Query("SELECT folder.type" +
|
||||
" FROM folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE folder.synchronize" +
|
||||
" AND account.synchronize" +
|
||||
" GROUP BY folder.type" +
|
||||
" HAVING COUNT(folder.id) > 1")
|
||||
LiveData<List<String>> liveUnifiedTypes();
|
||||
|
||||
@Query("SELECT * FROM folder WHERE id = :id")
|
||||
EntityFolder getFolder(Long id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user