mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
Clean up the worst rebase mistakes
This commit is contained in:
committed by
dignifiedquire
parent
ab41679855
commit
a791af2d90
@@ -169,7 +169,7 @@ unsafe fn dc_chatlist_load_from_db(
|
||||
} else if 0 != listflags & 0x1 {
|
||||
if let Some(mut stmt) = dc_sqlite3_prepare(
|
||||
(*chatlist).context,
|
||||
&(*chatlist).context,
|
||||
&(*chatlist).context.sql,
|
||||
"SELECT c.id, m.id FROM chats c LEFT JOIN msgs m \
|
||||
ON c.id=m.chat_id \
|
||||
AND m.timestamp=( SELECT MAX(timestamp) \
|
||||
@@ -220,7 +220,7 @@ unsafe fn dc_chatlist_load_from_db(
|
||||
let strLikeCmd = format!("%{}%", query);
|
||||
if let Some(mut stmt) = dc_sqlite3_prepare(
|
||||
(*chatlist).context,
|
||||
&(*chatlist).context.sql.clone().read().unwrap(),
|
||||
&(*chatlist).context.sql,
|
||||
"SELECT c.id, m.id FROM chats c LEFT JOIN msgs m \
|
||||
ON c.id=m.chat_id \
|
||||
AND m.timestamp=( SELECT MAX(timestamp) \
|
||||
|
||||
Reference in New Issue
Block a user