Fixed avatar for conversations

This commit is contained in:
M66B 2020-05-06 09:41:50 +02:00
parent 8c50b7f6f1
commit 59106b025c
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public interface DaoMessage {
" 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" +
" FROM message" +
" FROM (SELECT * FROM message ORDER BY received DESC) AS message" + // group_concat
" JOIN account_view AS account ON account.id = message.account" +
" LEFT JOIN identity_view AS identity ON identity.id = message.identity" +
" JOIN folder_view AS folder ON folder.id = message.folder" +
@ -132,7 +132,7 @@ public interface DaoMessage {
", message.priority AS ui_priority" +
", message.importance AS ui_importance" +
", 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" +
" LEFT JOIN identity_view AS identity ON identity.id = message.identity" +
" JOIN folder_view AS folder ON folder.id = message.folder" +