diff --git a/src/chat.rs b/src/chat.rs
index 386814822..ab8263468 100644
--- a/src/chat.rs
+++ b/src/chat.rs
@@ -2388,7 +2388,7 @@ async fn prepare_send_msg(
);
message::update_msg_state(context, msg.id, MessageState::OutPending).await?;
}
- let row_id = create_send_msg_job(context, msg.id).await?;
+ let row_id = create_send_msg_job(context, msg).await?;
Ok(row_id)
}
@@ -2398,10 +2398,10 @@ async fn prepare_send_msg(
/// group with only self and no BCC-to-self configured.
///
/// The caller has to interrupt SMTP loop or otherwise process a new row.
-async fn create_send_msg_job(context: &Context, msg_id: MsgId) -> Result