Move outbox to navigation menu

This commit is contained in:
M66B
2019-03-18 13:35:45 +00:00
parent 01fcffe8c9
commit 73a23b9d50
4 changed files with 77 additions and 27 deletions

View File

@@ -62,11 +62,8 @@ public interface DaoFolder {
" LEFT JOIN message ON message.folder = folder.id AND NOT message.ui_hide" +
" WHERE CASE WHEN :account IS NULL" +
" THEN folder.unified AND account.synchronize" +
" ELSE" +
" (folder.account = :account" +
" AND account.synchronize" +
" AND CASE WHEN :parent IS NULL THEN folder.parent IS NULL ELSE folder.parent = :parent END)" +
" OR (folder.account IS NULL AND :parent IS NULL)" +
" ELSE folder.account = :account AND account.synchronize" +
" AND CASE WHEN :parent IS NULL THEN folder.parent IS NULL ELSE folder.parent = :parent END" +
" END" +
" GROUP BY folder.id")
LiveData<List<TupleFolderEx>> liveFolders(Long account, Long parent);