mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Conditional contact cleanup
This commit is contained in:
@@ -94,6 +94,11 @@ public interface DaoContact {
|
||||
" GROUP BY name, email")
|
||||
List<EntityContact> searchContacts(Long account, Integer type, String query);
|
||||
|
||||
@Query("SELECT COUNT(*) FROM contact" +
|
||||
" WHERE (type = " + EntityContact.TYPE_TO +
|
||||
" OR type = " + EntityContact.TYPE_FROM + ")")
|
||||
int countContacts();
|
||||
|
||||
@Insert
|
||||
long insertContact(EntityContact contact);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user