Added menu item to sync child folders

This commit is contained in:
M66B
2020-10-14 10:10:18 +02:00
parent ea5478f84f
commit 678e362397
4 changed files with 57 additions and 25 deletions

View File

@@ -175,6 +175,10 @@ public interface DaoFolder {
" AND folder.notify")
List<EntityFolder> getNotifyingFolders(long account);
@Query("SELECT * FROM folder" +
" WHERE parent = :parent")
List<EntityFolder> getChildFolders(long parent);
@Query("SELECT folder.type" +
", COUNT(message.id) AS messages" +
", SUM(CASE WHEN NOT message.ui_seen THEN 1 ELSE 0 END) AS unseen" +