Prevent reload on download change

This commit is contained in:
M66B
2018-12-25 08:37:19 +00:00
parent 27686c9a8b
commit e7fac3cbcb
4 changed files with 28 additions and 20 deletions

View File

@@ -47,11 +47,6 @@ public interface DaoFolder {
" WHERE account.synchronize AND folder.synchronize AND unified")
List<EntityFolder> getFoldersSynchronizingUnified();
@Query("SELECT * FROM folder" +
" WHERE account = :account" +
" AND type = '" + EntityFolder.USER + "'")
List<EntityFolder> getUserFolders(long account);
@Query("SELECT folder.*, account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
", COUNT(message.id) AS messages" +
", SUM(CASE WHEN message.content = 1 THEN 1 ELSE 0 END) AS content" +
@@ -140,6 +135,9 @@ public interface DaoFolder {
@Query("SELECT * FROM folder WHERE type = '" + EntityFolder.OUTBOX + "'")
EntityFolder getOutbox();
@Query("SELECT download FROM folder WHERE id = :id")
boolean getFolderDownload(long id);
@Insert
long insertFolder(EntityFolder folder);