mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Clear local contacts only
This commit is contained in:
parent
30590c29fa
commit
8c7dbff7b3
1 changed files with 6 additions and 2 deletions
|
@ -97,9 +97,13 @@ public interface DaoContact {
|
||||||
@Query("DELETE FROM contact" +
|
@Query("DELETE FROM contact" +
|
||||||
" WHERE last_contacted IS NOT NULL" +
|
" WHERE last_contacted IS NOT NULL" +
|
||||||
" AND last_contacted < :before" +
|
" AND last_contacted < :before" +
|
||||||
" AND state <> " + EntityContact.STATE_FAVORITE)
|
" AND state <> " + EntityContact.STATE_FAVORITE +
|
||||||
|
" AND (type = " + EntityContact.TYPE_TO +
|
||||||
|
" OR type = " + EntityContact.TYPE_FROM + ")")
|
||||||
int deleteContacts(long before);
|
int deleteContacts(long before);
|
||||||
|
|
||||||
@Query("DELETE FROM contact")
|
@Query("DELETE FROM contact" +
|
||||||
|
" WHERE (type = " + EntityContact.TYPE_TO +
|
||||||
|
" OR type = " + EntityContact.TYPE_FROM + ")")
|
||||||
int clearContacts();
|
int clearContacts();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue