mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 16:40:53 +01:00
Prefer found non archived messages
This commit is contained in:
@@ -50,7 +50,7 @@ public interface DaoMessage {
|
||||
", COUNT(DISTINCT CASE WHEN message.msgid IS NULL THEN message.id ELSE message.msgid END) AS visible" +
|
||||
", SUM(message.size) AS totalSize" +
|
||||
", MAX(CASE WHEN" +
|
||||
" ((:found AND folder.type <> '" + EntityFolder.DRAFTS + "')" +
|
||||
" ((:found AND folder.type <> '" + EntityFolder.ARCHIVE + "' AND folder.type <> '" + EntityFolder.DRAFTS + "')" +
|
||||
" OR (NOT :found AND :type IS NULL AND folder.unified)" +
|
||||
" OR (NOT :found AND folder.type = :type))" +
|
||||
" THEN message.received ELSE 0 END) AS dummy" +
|
||||
|
||||
Reference in New Issue
Block a user