mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Restored query
This commit is contained in:
parent
3ef9db42ab
commit
1c3bebdc39
1 changed files with 3 additions and 3 deletions
|
@ -109,9 +109,9 @@ public interface DaoFolder {
|
||||||
", (SELECT COUNT(operation.id) FROM operation WHERE operation.folder = folder.id AND operation.state = 'executing') AS executing" +
|
", (SELECT COUNT(operation.id) FROM operation WHERE operation.folder = folder.id AND operation.state = 'executing') AS executing" +
|
||||||
" FROM folder" +
|
" FROM folder" +
|
||||||
" LEFT JOIN account ON account.id = folder.account" +
|
" LEFT JOIN account ON account.id = folder.account" +
|
||||||
" LEFT JOIN message ON message.folder = folder.id" +
|
" LEFT JOIN message ON message.folder = folder.id AND message.ui_hide = 0" +
|
||||||
" WHERE (account.id IS NULL OR (account.`synchronize` AND folder.navigation))" +
|
" WHERE account.id IS NULL" +
|
||||||
" AND (message.ui_hide = 0 OR message.ui_hide IS NULL)" +
|
" OR (account.`synchronize` AND folder.navigation)" +
|
||||||
" GROUP BY folder.id")
|
" GROUP BY folder.id")
|
||||||
LiveData<List<TupleFolderNav>> liveNavigation();
|
LiveData<List<TupleFolderNav>> liveNavigation();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue