Use on demand sync when disabled

This commit is contained in:
M66B
2019-02-28 12:35:19 +00:00
parent 1324a364e8
commit 4b8a4b92bc
6 changed files with 28 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ public interface DaoFolder {
", SUM(CASE WHEN message.ui_seen = 0 THEN 1 ELSE 0 END) AS unseen" +
" FROM folder" +
" JOIN account ON account.id = folder.account" +
" JOIN message ON message.folder = folder.id AND NOT message.ui_hide" +
" LEFT JOIN message ON message.folder = folder.id AND NOT message.ui_hide" +
" WHERE account.`synchronize`" +
" AND folder.unified" +
" GROUP BY folder.id")