fix searching for localized device chats

This commit is contained in:
B. Petersen
2019-12-26 11:55:37 +01:00
committed by Alexander Krotov
parent 6702ef4a71
commit cb2a1147f0
2 changed files with 26 additions and 0 deletions

View File

@@ -162,6 +162,10 @@ impl Chatlist {
let query = query.trim().to_string();
ensure!(!query.is_empty(), "missing query");
// allow searching over special names that may change at any time
// when the ui calls set_stock_translation()
update_special_chat_names(context)?;
let str_like_cmd = format!("%{}%", query);
context.sql.query_map(
"SELECT c.id, m.id