mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
fix searching for localized device chats
This commit is contained in:
committed by
Alexander Krotov
parent
6702ef4a71
commit
cb2a1147f0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user