diff --git a/app/src/main/java/eu/faircode/email/DaoFolder.java b/app/src/main/java/eu/faircode/email/DaoFolder.java index 08ea3bb495..9f3b70f319 100644 --- a/app/src/main/java/eu/faircode/email/DaoFolder.java +++ b/app/src/main/java/eu/faircode/email/DaoFolder.java @@ -42,7 +42,7 @@ public interface DaoFolder { @Query("SELECT * FROM folder WHERE synchronize") List getFoldersSynchronizing(); - @Query("SELECT * FROM folder" + + @Query("SELECT folder.* FROM folder" + " JOIN account ON account.id = folder.account" + " WHERE account.synchronize AND folder.synchronize AND unified") List getFoldersSynchronizingUnified();