mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Batch notify new messages
This commit is contained in:
@@ -89,6 +89,11 @@ public interface DaoFolder {
|
||||
" AND folder.type = '" + EntityFolder.DRAFTS + "'")
|
||||
LiveData<EntityFolder> livePrimaryDrafts();
|
||||
|
||||
@Query("SELECT COUNT(id) FROM folder" +
|
||||
" WHERE sync_state = 'syncing'" +
|
||||
" AND folder.type <> '" + EntityFolder.OUTBOX + "'")
|
||||
LiveData<Integer> liveSynchronizing();
|
||||
|
||||
@Query("SELECT folder.*" +
|
||||
", account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
|
||||
", COUNT(message.id) AS messages" +
|
||||
|
||||
Reference in New Issue
Block a user