Clear contacts by type

This commit is contained in:
M66B
2022-03-23 10:05:58 +01:00
parent 8f9dda9878
commit 905e79fc8b
2 changed files with 17 additions and 6 deletions

View File

@@ -103,7 +103,6 @@ public interface DaoContact {
int deleteContacts(long before);
@Query("DELETE FROM contact" +
" WHERE (type = " + EntityContact.TYPE_TO +
" OR type = " + EntityContact.TYPE_FROM + ")")
int clearContacts();
" WHERE type IN (:types)")
int clearContacts(int[] types);
}