fix sorting of blocked contacts (successor of #2206)

This commit is contained in:
B. Petersen
2021-02-22 22:23:04 +01:00
committed by bjoern
parent 6d93d7af63
commit 01af3b7547

View File

@@ -679,7 +679,7 @@ impl Contact {
context
.sql
.query_map(
"SELECT id FROM contacts WHERE id>? AND blocked!=0 ORDER BY LOWER(name||addr),id;",
"SELECT id FROM contacts WHERE id>? AND blocked!=0 ORDER BY LOWER(iif(name='',authname,name)||addr),id;",
paramsv![DC_CONTACT_ID_LAST_SPECIAL as i32],
|row| row.get::<_, u32>(0),
|ids| {