mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Show operation errors in nav menu
This commit is contained in:
@@ -65,8 +65,10 @@ public interface DaoOperation {
|
||||
@Query(GET_OPS_FOLDER)
|
||||
LiveData<List<EntityOperation>> liveOperations(long folder);
|
||||
|
||||
@Query("SELECT COUNT(operation.id) FROM operation")
|
||||
LiveData<Integer> liveCount();
|
||||
@Query("SELECT COUNT(operation.id) AS pending" +
|
||||
", SUM(CASE WHEN operation.error IS NULL THEN 0 ELSE 1 END) AS errors" +
|
||||
" FROM operation")
|
||||
LiveData<TupleOperationStats> liveStats();
|
||||
|
||||
@Query("SELECT COUNT(operation.id) FROM operation" +
|
||||
" WHERE operation.name = '" + EntityOperation.SEND + "'")
|
||||
|
||||
Reference in New Issue
Block a user