Revert "Drop notify requirement for message count widget"

This reverts commit a894e615b5.
This commit is contained in:
M66B 2020-01-20 16:44:51 +01:00
parent 8291edc115
commit 1adbacc9da
1 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,7 @@ public interface DaoMessage {
" JOIN folder ON folder.id = message.folder" +
" WHERE (:account IS NULL OR account.id = :account)" +
" AND account.`synchronize`" +
" AND folder.notify" +
" AND NOT (message.ui_seen OR message.ui_hide)" +
" GROUP BY account.id" +
" ORDER BY account.id")
@ -333,6 +334,7 @@ public interface DaoMessage {
" JOIN folder ON folder.id = message.folder" +
" WHERE (:account IS NULL OR account.id = :account)" +
" AND account.`synchronize`" +
" AND folder.notify" +
" AND NOT (message.ui_seen OR message.ui_hide)")
TupleMessageStats getUnseenWidget(Long account);