mirror of https://github.com/M66B/FairEmail.git
Prevent contact invalidation
This commit is contained in:
parent
6299eaa317
commit
fff7256cfb
|
@ -81,10 +81,10 @@ public interface DaoContact {
|
|||
" AND email = :email")
|
||||
int deleteContact(long account, int type, String email);
|
||||
|
||||
@Query("UPDATE contact SET name = :name WHERE id = :id")
|
||||
@Query("UPDATE contact SET name = :name WHERE id = :id AND name <> :name")
|
||||
int setContactName(long id, String name);
|
||||
|
||||
@Query("UPDATE contact SET state = :state WHERE id = :id")
|
||||
@Query("UPDATE contact SET state = :state WHERE id = :id AND state <> :state")
|
||||
int setContactState(long id, int state);
|
||||
|
||||
@Query("DELETE FROM contact" +
|
||||
|
|
Loading…
Reference in New Issue