From 1c3bebdc3989249ae77c0d02a11b65755debe78d Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 28 Jun 2019 18:31:01 +0200 Subject: [PATCH] Restored query --- app/src/main/java/eu/faircode/email/DaoFolder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoFolder.java b/app/src/main/java/eu/faircode/email/DaoFolder.java index 668c467766..8cdd57f8a1 100644 --- a/app/src/main/java/eu/faircode/email/DaoFolder.java +++ b/app/src/main/java/eu/faircode/email/DaoFolder.java @@ -109,9 +109,9 @@ public interface DaoFolder { ", (SELECT COUNT(operation.id) FROM operation WHERE operation.folder = folder.id AND operation.state = 'executing') AS executing" + " FROM folder" + " LEFT JOIN account ON account.id = folder.account" + - " LEFT JOIN message ON message.folder = folder.id" + - " WHERE (account.id IS NULL OR (account.`synchronize` AND folder.navigation))" + - " AND (message.ui_hide = 0 OR message.ui_hide IS NULL)" + + " LEFT JOIN message ON message.folder = folder.id AND message.ui_hide = 0" + + " WHERE account.id IS NULL" + + " OR (account.`synchronize` AND folder.navigation)" + " GROUP BY folder.id") LiveData> liveNavigation();