Debug info: outbox count

This commit is contained in:
M66B
2022-03-20 07:44:12 +01:00
parent 40d79f6219
commit 61e9407f62
2 changed files with 7 additions and 1 deletions

View File

@@ -462,6 +462,11 @@ public interface DaoMessage {
" AND sender = :sender")
int countSender(long folder, String sender);
@Query("SELECT COUNT(*) FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE folder.account IS NULL")
int countOutbox();
@Query("SELECT COUNT(*) FROM message")
int countTotal();