Fixed navigation count

pull/157/head
M66B 6 years ago
parent 78e48cd506
commit 1a5fa5e830

@ -44,7 +44,7 @@ public interface DaoAccount {
LiveData<List<EntityAccount>> liveSynchronizingAccounts();
@Query("SELECT account.*" +
", (SELECT COUNT(message.id)" +
", (SELECT COUNT(DISTINCT CASE WHEN message.msgid IS NULL THEN message.id ELSE message.msgid END)" +
" FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE message.account = account.id" +

Loading…
Cancel
Save