Show number of delayed send messages

This commit is contained in:
M66B
2021-03-31 18:07:58 +02:00
parent 21cdd9c144
commit 47e8bc4b40
5 changed files with 95 additions and 0 deletions

View File

@@ -245,6 +245,13 @@ public interface DaoMessage {
boolean filter_archive,
boolean ascending, boolean debug);
@Query("SELECT COUNT(*) FROM message" +
" JOIN folder_view AS folder ON folder.id = message.folder" +
" LEFT JOIN operation ON operation.message = message.id" +
" WHERE " + is_outbox +
" AND operation.id IS NULL")
LiveData<Integer> liveOutboxPending();
@Query("SELECT account.name AS accountName" +
", COUNT(message.id) AS count" +
", SUM(message.ui_seen) AS seen" +