mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Added automatically delete old local contacts
This commit is contained in:
@@ -135,11 +135,12 @@ public interface DaoContact {
|
||||
|
||||
@Query("DELETE FROM contact" +
|
||||
" WHERE last_contacted IS NOT NULL" +
|
||||
" AND last_contacted < :before" +
|
||||
" AND last_contacted < :last" +
|
||||
" AND times_contacted < :times" +
|
||||
" AND state <> " + EntityContact.STATE_FAVORITE +
|
||||
" AND (type = " + EntityContact.TYPE_TO +
|
||||
" OR type = " + EntityContact.TYPE_FROM + ")")
|
||||
int deleteContacts(long before);
|
||||
int deleteContacts(long last, int times);
|
||||
|
||||
@Query("DELETE FROM contact" +
|
||||
" WHERE (:account IS NULL OR account = :account)" +
|
||||
|
||||
Reference in New Issue
Block a user