mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Count non favorite answers only
This commit is contained in:
@@ -56,8 +56,9 @@ public interface DaoAnswer {
|
||||
LiveData<List<EntityAnswer>> liveAnswers();
|
||||
|
||||
@Query("SELECT COUNT(*) FROM answer" +
|
||||
" WHERE NOT hide")
|
||||
Integer getAnswerCount();
|
||||
" WHERE NOT hide" +
|
||||
" AND (:favorite OR NOT favorite)")
|
||||
Integer getAnswerCount(boolean favorite);
|
||||
|
||||
@Insert
|
||||
long insertAnswer(EntityAnswer answer);
|
||||
|
||||
Reference in New Issue
Block a user