mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
sql: use sqlite3_last_insert_rowid instead of SELECT
This commit is contained in:
@@ -317,7 +317,8 @@ impl Message {
|
||||
pub async fn load_from_db(context: &Context, id: MsgId) -> Result<Message, Error> {
|
||||
ensure!(
|
||||
!id.is_special(),
|
||||
"Can not load special message IDs from DB."
|
||||
"Can not load special message ID {} from DB.",
|
||||
id
|
||||
);
|
||||
let row = context
|
||||
.sql
|
||||
|
||||
Reference in New Issue
Block a user