mirror of https://github.com/M66B/FairEmail.git
Fixed navigation count
This commit is contained in:
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…
Reference in New Issue