Simplification/fix

This commit is contained in:
M66B
2019-09-22 14:42:43 +02:00
parent ebd6269379
commit 43440e3b07
3 changed files with 12 additions and 12 deletions

View File

@@ -248,7 +248,7 @@ public interface DaoMessage {
" WHERE message.id = :id")
LiveData<TupleMessageEx> liveMessage(long id);
@Query("SELECT COUNT(message.id) AS unseen, SUM(message.ui_ignored) AS ignored" +
@Query("SELECT COUNT(message.id) AS unseen, SUM(ABS(notifying)) AS notifying" +
" FROM message" +
" JOIN account ON account.id = message.account" +
" JOIN folder ON folder.id = message.folder" +