Browse Source

Fixed unseen count unified inbox

main
M66B 6 years ago
parent
commit
9d96834953
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/src/main/java/eu/faircode/email/DaoFolder.java

+ 3
- 2
app/src/main/java/eu/faircode/email/DaoFolder.java View File

@ -57,8 +57,9 @@ public interface DaoFolder {
", SUM(CASE WHEN message.ui_seen = 0 THEN 1 ELSE 0 END) AS unseen" + ", SUM(CASE WHEN message.ui_seen = 0 THEN 1 ELSE 0 END) AS unseen" +
" FROM folder" + " FROM folder" +
" JOIN account ON account.id = folder.account" + " JOIN account ON account.id = folder.account" +
" LEFT JOIN message ON message.folder = folder.id AND NOT message.ui_hide" +
" WHERE folder.type = '" + EntityFolder.INBOX + "'" +
" JOIN message ON message.folder = folder.id AND NOT message.ui_hide" +
" WHERE account.`synchronize`" +
" AND folder.type = '" + EntityFolder.INBOX + "'" +
" GROUP BY folder.id") " GROUP BY folder.id")
LiveData<List<TupleFolderEx>> liveUnified(); LiveData<List<TupleFolderEx>> liveUnified();


Loading…
Cancel
Save