mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
blocking for with_conn
This commit is contained in:
@@ -1225,11 +1225,11 @@ pub(crate) async fn create_or_lookup_by_contact_id(
|
||||
}
|
||||
|
||||
let contact = Contact::load_from_db(context, contact_id).await?;
|
||||
let chat_name = contact.get_display_name();
|
||||
let chat_name = contact.get_display_name().to_string();
|
||||
|
||||
context
|
||||
.sql
|
||||
.with_conn(|mut conn| {
|
||||
.with_conn(move |mut conn| {
|
||||
let conn2 = &mut conn;
|
||||
let tx = conn2.transaction()?;
|
||||
tx.execute(
|
||||
|
||||
Reference in New Issue
Block a user