mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Suggest account categories
This commit is contained in:
@@ -161,6 +161,12 @@ public interface DaoAccount {
|
||||
" AND tbd IS NULL")
|
||||
List<EntityAccount> getAccounts(String user, int protocol);
|
||||
|
||||
@Query("SELECT DISTINCT category" +
|
||||
" FROM account" +
|
||||
" WHERE NOT (category IS NULL OR category = '')" +
|
||||
" ORDER BY category COLLATE NOCASE")
|
||||
List<String> getAccountCategories();
|
||||
|
||||
@Query("SELECT * FROM account WHERE `primary`")
|
||||
EntityAccount getPrimaryAccount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user