diff --git a/src/context.rs b/src/context.rs index 020f35b72..c7f83d301 100644 --- a/src/context.rs +++ b/src/context.rs @@ -594,7 +594,7 @@ impl Context { let list = if let Some(chat_id) = chat_id { do_query( - "SELECT m.id AS id, m.timestamp AS timestamp + "SELECT m.id AS id FROM msgs m LEFT JOIN contacts ct ON m.from_id=ct.id @@ -618,7 +618,7 @@ impl Context { // According to some tests, this limit speeds up eg. 2 character searches by factor 10. // The limit is documented and UI may add a hint when getting 1000 results. do_query( - "SELECT m.id AS id, m.timestamp AS timestamp + "SELECT m.id AS id FROM msgs m LEFT JOIN contacts ct ON m.from_id=ct.id