Added notifying ignore state

This commit is contained in:
M66B
2021-01-27 15:48:49 +01:00
parent 303c4a4eca
commit b4f37fca7c
3 changed files with 56 additions and 41 deletions

View File

@@ -475,7 +475,8 @@ public interface DaoMessage {
" WHERE account.`synchronize`" +
" AND folder.notify" +
" AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" +
" AND (notifying <> 0 OR NOT (message.ui_seen OR message.ui_hide))" +
" AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE +
" AND (message.notifying <> 0 OR NOT (message.ui_seen OR message.ui_hide))" +
" ORDER BY message.received DESC")
LiveData<List<TupleMessageEx>> liveUnseenNotify();
@@ -487,6 +488,7 @@ public interface DaoMessage {
" WHERE (:account IS NULL OR account.id = :account)" +
" AND account.`synchronize`" +
" AND folder.notify" +
" AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE +
" AND NOT (message.ui_seen OR message.ui_hide)" +
" GROUP BY account.id" +
" ORDER BY account.id")
@@ -499,6 +501,7 @@ public interface DaoMessage {
" WHERE (:account IS NULL OR account.id = :account)" +
" AND account.`synchronize`" +
" AND folder.notify" +
" AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE +
" AND NOT (message.ui_seen OR message.ui_hide)")
TupleMessageStats getWidgetUnseen(Long account);