1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Small improvement

This commit is contained in:
M66B 2019-03-17 18:35:51 +00:00
parent 23fe035085
commit 5977166f20

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