Show number of unread messages in account

This commit is contained in:
M66B
2019-03-19 09:12:37 +00:00
parent 50bbbbe2f8
commit 883ed09fbd
4 changed files with 42 additions and 25 deletions

View File

@@ -38,10 +38,6 @@ public interface DaoAccount {
@Query("SELECT * FROM account WHERE tbd = 1")
List<EntityAccount> getAccountsTbd();
@Query("SELECT * FROM account" +
" WHERE :all OR account.synchronize")
LiveData<List<EntityAccount>> liveAccounts(boolean all);
@Query("SELECT * FROM account WHERE synchronize")
LiveData<List<EntityAccount>> liveSynchronizingAccounts();
@@ -65,9 +61,9 @@ public interface DaoAccount {
" AND NOT ui_hide) AS unsent" +
" FROM account" +
" LEFT JOIN operation ON operation.account = account.id" +
" WHERE synchronize" +
" WHERE :all OR account.synchronize" +
" GROUP BY account.id")
LiveData<List<TupleAccountEx>> liveAccountsEx();
LiveData<List<TupleAccountEx>> liveAccountsEx(boolean all);
@Query("SELECT * FROM account WHERE id = :id")
EntityAccount getAccount(long id);