mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Delete junk contacts
This commit is contained in:
@@ -79,6 +79,12 @@ public interface DaoContact {
|
||||
@Query("DELETE FROM contact WHERE id = :id")
|
||||
int deleteContact(long id);
|
||||
|
||||
@Query("DELETE FROM contact" +
|
||||
" WHERE account = :account" +
|
||||
" AND type = :type" +
|
||||
" AND email = :email")
|
||||
int deleteContact(long account, int type, String email);
|
||||
|
||||
@Query("UPDATE contact SET state = :state WHERE id = :id")
|
||||
int setContactState(long id, int state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user