mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 10:35:15 +01:00
Improved read only folder support
This commit is contained in:
@@ -30,8 +30,9 @@ import java.util.List;
|
||||
public interface DaoFolder {
|
||||
@Query("SELECT * FROM folder" +
|
||||
" WHERE account = :account" +
|
||||
" AND (NOT :writable OR NOT read_only)" +
|
||||
" AND (NOT :selectable OR selectable)")
|
||||
List<EntityFolder> getFolders(long account, boolean selectable);
|
||||
List<EntityFolder> getFolders(long account, boolean writable, boolean selectable);
|
||||
|
||||
@Query("SELECT folder.*" +
|
||||
", account.id AS accountId, account.`order` AS accountOrder, account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
|
||||
|
||||
Reference in New Issue
Block a user