Small improvement

This commit is contained in:
M66B 2019-03-17 18:35:51 +00:00
parent 23fe035085
commit 5977166f20
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ 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 OR folder.account IS NULL" +
" ELSE (folder.account = :account AND account.synchronize) OR folder.account IS NULL" +
" END" +
" GROUP BY folder.id")
LiveData<List<TupleFolderEx>> liveFolders(Long account);