mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Skip polling of on demand accounts
This commit is contained in:
@@ -37,6 +37,13 @@ public interface DaoAccount {
|
||||
" ORDER BY `order`, `primary` DESC, name COLLATE NOCASE")
|
||||
List<EntityAccount> getSynchronizingAccounts();
|
||||
|
||||
@Query("SELECT * FROM account" +
|
||||
" WHERE (:id IS NULL OR id = :id)" +
|
||||
" AND synchronize" +
|
||||
" AND NOT ondemand" +
|
||||
" ORDER BY `order`, `primary` DESC, name COLLATE NOCASE")
|
||||
List<EntityAccount> getPollAccounts(Long id);
|
||||
|
||||
@Query("SELECT * FROM account WHERE synchronize")
|
||||
LiveData<List<EntityAccount>> liveSynchronizingAccounts();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user