|
|
@ -59,7 +59,8 @@ public interface DaoAccount {
|
|
|
|
", (SELECT COUNT(message.id) FROM message" +
|
|
|
|
", (SELECT COUNT(message.id) FROM message" +
|
|
|
|
" JOIN account ON account.id = message.account" +
|
|
|
|
" JOIN account ON account.id = message.account" +
|
|
|
|
" JOIN folder ON folder.id = message.folder" +
|
|
|
|
" JOIN folder ON folder.id = message.folder" +
|
|
|
|
" WHERE NOT message.ui_seen AND NOT message.ui_hide" +
|
|
|
|
" WHERE account.`synchronize`" +
|
|
|
|
|
|
|
|
" AND NOT message.ui_seen AND NOT message.ui_hide" +
|
|
|
|
" AND (account.seen_until IS NULL OR message.stored > account.seen_until)" +
|
|
|
|
" AND (account.seen_until IS NULL OR message.stored > account.seen_until)" +
|
|
|
|
" AND folder.type = '" + EntityFolder.INBOX + "') AS unseen" +
|
|
|
|
" AND folder.type = '" + EntityFolder.INBOX + "') AS unseen" +
|
|
|
|
", (SELECT COUNT(message.id) FROM message" +
|
|
|
|
", (SELECT COUNT(message.id) FROM message" +
|
|
|
|