mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Open relevant folder/messages from unread count widget
This commit is contained in:
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user