mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Added color stripe to unified inbox widget
This commit is contained in:
@@ -460,12 +460,14 @@ public interface DaoMessage {
|
||||
|
||||
@Query("SELECT message.*" +
|
||||
", account.name AS accountName" +
|
||||
", COALESCE(identity.color, folder.color, account.color) AS accountColor" +
|
||||
", SUM(1 - message.ui_seen) AS unseen" +
|
||||
", COUNT(message.id) - SUM(message.ui_flagged) AS unflagged" +
|
||||
", MAX(message.received) AS dummy" +
|
||||
" FROM message" +
|
||||
" JOIN account_view AS account ON account.id = message.account" +
|
||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||
" LEFT JOIN identity ON identity.id = message.identity" +
|
||||
" WHERE account.`synchronize`" +
|
||||
" AND (:account IS NULL OR account.id = :account)" +
|
||||
" AND ((:folder IS NULL AND folder.unified) OR folder.id = :folder)" +
|
||||
|
||||
Reference in New Issue
Block a user