mirror of https://github.com/M66B/FairEmail.git
Fixed avatar for conversations
This commit is contained in:
parent
8c50b7f6f1
commit
59106b025c
|
@ -68,7 +68,7 @@ public interface DaoMessage {
|
||||||
" OR (NOT :found AND :type IS NULL AND folder.unified)" +
|
" OR (NOT :found AND :type IS NULL AND folder.unified)" +
|
||||||
" OR (NOT :found AND folder.type = :type))" +
|
" OR (NOT :found AND folder.type = :type))" +
|
||||||
" THEN message.received ELSE 0 END) AS dummy" +
|
" THEN message.received ELSE 0 END) AS dummy" +
|
||||||
" FROM message" +
|
" FROM (SELECT * FROM message ORDER BY received DESC) AS message" + // group_concat
|
||||||
" JOIN account_view AS account ON account.id = message.account" +
|
" JOIN account_view AS account ON account.id = message.account" +
|
||||||
" LEFT JOIN identity_view AS identity ON identity.id = message.identity" +
|
" LEFT JOIN identity_view AS identity ON identity.id = message.identity" +
|
||||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||||
|
@ -132,7 +132,7 @@ public interface DaoMessage {
|
||||||
", message.priority AS ui_priority" +
|
", message.priority AS ui_priority" +
|
||||||
", message.importance AS ui_importance" +
|
", message.importance AS ui_importance" +
|
||||||
", MAX(CASE WHEN folder.id = :folder THEN message.received ELSE 0 END) AS dummy" +
|
", MAX(CASE WHEN folder.id = :folder THEN message.received ELSE 0 END) AS dummy" +
|
||||||
" FROM message" +
|
" FROM (SELECT * FROM message ORDER BY received DESC) AS message" + // group_concat
|
||||||
" JOIN account_view AS account ON account.id = message.account" +
|
" JOIN account_view AS account ON account.id = message.account" +
|
||||||
" LEFT JOIN identity_view AS identity ON identity.id = message.identity" +
|
" LEFT JOIN identity_view AS identity ON identity.id = message.identity" +
|
||||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||||
|
|
Loading…
Reference in New Issue