Mark local contacts

This commit is contained in:
M66B
2020-01-23 17:48:34 +01:00
parent 891252bf3e
commit 2fc85244d5
2 changed files with 5 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ public interface DaoContact {
" AND email = :email COLLATE NOCASE")
EntityContact getContact(long account, int type, String email);
@Query("SELECT id AS _id, name, email" +
@Query("SELECT id AS _id, name, email, name || ' *' AS display" +
" FROM contact" +
" WHERE (:account IS NULL OR account = :account)" +
" AND (:type IS NULL OR type = :type)" +