mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Prevent suggesting junk contacts
This commit is contained in:
@@ -43,6 +43,8 @@ public interface DaoContact {
|
||||
|
||||
@Query("SELECT email, name, avatar FROM contact" +
|
||||
" WHERE state <> " + EntityContact.STATE_IGNORE +
|
||||
" AND (type = " + EntityContact.TYPE_TO +
|
||||
" OR type = " + EntityContact.TYPE_FROM + ")" +
|
||||
" ORDER BY" +
|
||||
" CASE WHEN state = " + EntityContact.STATE_FAVORITE + " THEN 0 ELSE 1 END" +
|
||||
", CASE WHEN avatar IS NULL THEN 1 ELSE 0 END" +
|
||||
|
||||
Reference in New Issue
Block a user