1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +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" +
" FROM folder" +
" LEFT JOIN account ON account.id = folder.account" +
" LEFT JOIN message ON message.folder = folder.id" +
" WHERE (account.id IS NULL OR (account.`synchronize` AND folder.navigation))" +
" AND (message.ui_hide = 0 OR message.ui_hide IS NULL)" +
" LEFT JOIN message ON message.folder = folder.id AND message.ui_hide = 0" +
" WHERE account.id IS NULL" +
" OR (account.`synchronize` AND folder.navigation)" +
" GROUP BY folder.id")
LiveData<List<TupleFolderNav>> liveNavigation();