Revert "Fixed showing messages in unified inbox of disabled accounts"

This reverts commit cacd62fbeb.
This commit is contained in:
M66B 2020-05-08 12:49:15 +02:00
parent bd191d685f
commit 1a91a4d5b2
1 changed files with 1 additions and 3 deletions

View File

@ -78,10 +78,8 @@ public interface DaoMessage {
" AND (NOT :found OR message.ui_found = :found)" + " AND (NOT :found OR message.ui_found = :found)" +
" AND message.thread IN" + " AND message.thread IN" +
" (SELECT DISTINCT mm.thread FROM folder ff" + " (SELECT DISTINCT mm.thread FROM folder ff" +
" JOIN account aa ON aa.id = ff.account" +
" JOIN message mm ON mm.folder = ff.id" + " JOIN message mm ON mm.folder = ff.id" +
" WHERE aa.synchronize" + " WHERE ((:found AND mm.ui_found)" +
" AND ((:found AND mm.ui_found)" +
" OR (NOT :found AND :type IS NULL AND ff.unified)" + " OR (NOT :found AND :type IS NULL AND ff.unified)" +
" OR (NOT :found AND :type IS NOT NULL AND ff.type = :type))" + " OR (NOT :found AND :type IS NOT NULL AND ff.type = :type))" +
" AND (NOT mm.ui_hide OR :debug))" + " AND (NOT mm.ui_hide OR :debug))" +