diff --git a/src/chat.rs b/src/chat.rs index 6e694c72be..d217f05b4b 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -4374,7 +4374,7 @@ pub async fn save_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> { }) .await?; } - context.send_sync_msg().await?; + context.scheduler.interrupt_inbox().await; Ok(()) } diff --git a/src/sync.rs b/src/sync.rs index 68ab502839..0687f1778c 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -169,7 +169,7 @@ impl Context { /// /// Mustn't be called from multiple tasks in parallel to avoid sending the same sync items twice /// because sync items are removed from the db only after successful sending. We guarantee this - /// by calling `send_sync_msg()` only from the SMTP loop. + /// by calling `send_sync_msg()` only from the inbox loop. pub async fn send_sync_msg(&self) -> Result> { if let Some((json, ids)) = self.build_sync_json().await? { let chat_id =