do not abort search completely when updating a special name fails

This commit is contained in:
B. Petersen
2019-12-27 18:43:53 +01:00
committed by Alexander Krotov
parent ffa6378108
commit d87b676d60

View File

@@ -164,7 +164,9 @@ impl Chatlist {
// allow searching over special names that may change at any time
// when the ui calls set_stock_translation()
update_special_chat_names(context)?;
if let Err(err) = update_special_chat_names(context) {
warn!(context, "cannot update special chat names: {:?}", err)
}
let str_like_cmd = format!("%{}%", query);
context.sql.query_map(