mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 01:51:24 +01:00
Observe operations
This commit is contained in:
@@ -65,9 +65,9 @@ public interface DaoAccount {
|
||||
@Query("SELECT" +
|
||||
" (SELECT COUNT(account.id) FROM account WHERE synchronize AND state = 'connected') AS accounts" +
|
||||
", (SELECT COUNT(operation.id) FROM operation" +
|
||||
" JOIN message ON message.id = operation.message" +
|
||||
" JOIN account ON account.id = message.account" +
|
||||
" WHERE synchronize) AS operations" +
|
||||
" JOIN folder ON folder.id = operation.folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE account.synchronize) AS operations" +
|
||||
", (SELECT COUNT(message.id) FROM message" +
|
||||
" JOIN folder ON folder.id = message.folder" +
|
||||
" JOIN operation ON operation.message = message.id AND operation.name = '" + EntityOperation.SEND + "'" +
|
||||
|
||||
Reference in New Issue
Block a user