diff --git a/app/src/main/java/eu/faircode/email/DaoFolder.java b/app/src/main/java/eu/faircode/email/DaoFolder.java index 65d55ee17b..08e34068b2 100644 --- a/app/src/main/java/eu/faircode/email/DaoFolder.java +++ b/app/src/main/java/eu/faircode/email/DaoFolder.java @@ -157,8 +157,7 @@ public interface DaoFolder { @Query("SELECT folder.type" + " FROM folder" + " JOIN account ON account.id = folder.account" + - " WHERE folder.synchronize" + - " AND account.synchronize" + + " WHERE account.synchronize" + " AND folder.type <> '" + EntityFolder.USER + "'" + " GROUP BY folder.type" + " HAVING COUNT(folder.id) > 1")