From 59106b025c2e45881cd78b4a8d8557fbcbcd6ffa Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 6 May 2020 09:41:50 +0200 Subject: [PATCH] Fixed avatar for conversations --- app/src/main/java/eu/faircode/email/DaoMessage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index a84cb95cc9..8405bcd73b 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -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" +