Unified system folder fixes/improvements

This commit is contained in:
M66B
2019-07-22 13:44:25 +02:00
parent 816ab11ef9
commit a1bead9301
5 changed files with 14 additions and 10 deletions

View File

@@ -172,15 +172,16 @@ public interface DaoMessage {
@Query("SELECT message.id FROM folder" +
" JOIN message ON message.folder = folder.id" +
" WHERE CASE WHEN :folder IS NULL THEN folder.unified ELSE folder.id = :folder END" +
" WHERE ((:folder IS NULL AND :type IS NULL AND folder.unified)" +
" OR folder.type = :type OR folder.id = :folder)" +
" AND ui_hide <> 0")
LiveData<List<Long>> liveHidden(Long folder);
LiveData<List<Long>> liveHiddenFolder(Long folder, String type);
@Query("SELECT id FROM message" +
" WHERE account = :account" +
" AND thread = :thread" +
" AND ui_hide <> 0")
LiveData<List<Long>> liveHidden(long account, String thread);
LiveData<List<Long>> liveHiddenThread(long account, String thread);
@Query("SELECT *" +
" FROM message" +