Limit number of snoozed/delayed messages

This commit is contained in:
M66B
2022-06-30 07:42:35 +02:00
parent bea7217bd8
commit a1f11a40cc
5 changed files with 40 additions and 3 deletions

View File

@@ -647,6 +647,9 @@ public interface DaoMessage {
" AND NOT ui_snoozed IS NULL")
List<EntityMessage> getSnoozed(Long folder);
@Query("SELECT COUNT(*) FROM message WHERE NOT ui_snoozed IS NULL")
int getSnoozedCount();
@Query("SELECT id AS _id, subject AS suggestion FROM message" +
" WHERE (:account IS NULL OR message.account = :account)" +
" AND (:folder IS NULL OR message.folder = :folder)" +