1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Restored query

This commit is contained in:
M66B 2019-06-28 18:31:01 +02:00
parent 3ef9db42ab
commit 1c3bebdc39

View file

@ -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();