Open relevant folder/messages from unread count widget

This commit is contained in:
M66B
2020-03-28 10:20:52 +01:00
parent 5e5213f5b8
commit 767c8e8fe2
3 changed files with 41 additions and 12 deletions

View File

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