mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Show send errors in message lists
This commit is contained in:
@@ -245,11 +245,12 @@ public interface DaoMessage {
|
||||
boolean filter_archive,
|
||||
boolean ascending, boolean debug);
|
||||
|
||||
@Query("SELECT COUNT(*) FROM message" +
|
||||
@Query("SELECT COUNT(*) AS pending, SUM(message.error IS NOT NULL) AS errors" +
|
||||
" FROM message" +
|
||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||
" WHERE " + is_outbox +
|
||||
" AND NOT ui_snoozed IS NULL")
|
||||
LiveData<Integer> liveOutboxPending();
|
||||
" AND (NOT message.ui_snoozed IS NULL OR message.error IS NOT NULL)")
|
||||
LiveData<TupleOutboxStats> liveOutboxPending();
|
||||
|
||||
@Query("SELECT account.name AS accountName" +
|
||||
", COUNT(message.id) AS count" +
|
||||
|
||||
Reference in New Issue
Block a user