|
|
|
@ -136,7 +136,7 @@ public interface DaoMessage {
|
|
|
|
|
" AND (NOT :filter_unknown OR SUM(message.avatar IS NOT NULL AND message.sender <> identity.email) > 0" +
|
|
|
|
|
" OR " + is_outbox + " OR " + is_drafts + " OR " + is_sent + ")" +
|
|
|
|
|
" AND (NOT :filter_snoozed OR message.ui_snoozed IS NULL OR " + is_outbox + " OR " + is_drafts + ")" +
|
|
|
|
|
" AND (:filter_language IS NULL OR SUM(message.language = :filter_language) > 0)" +
|
|
|
|
|
" AND (:filter_language IS NULL OR SUM(message.language = :filter_language) > 0 OR " + is_outbox + ")" +
|
|
|
|
|
" ORDER BY -IFNULL(MAX(message.importance), 1)" +
|
|
|
|
|
", CASE" +
|
|
|
|
|
" WHEN 'unread' = :sort THEN SUM(1 - message.ui_seen) = 0" +
|
|
|
|
|