fix: Don't SMTP-send self-only messages if DeleteServerAfter is "immediate" (#6661)

This commit is contained in:
iequidoo
2025-03-17 00:28:39 -03:00
committed by iequidoo
parent dc17f2692c
commit 5d334ee6ee
5 changed files with 20 additions and 9 deletions

View File

@@ -46,11 +46,11 @@ pub async fn initiate_key_transfer(context: &Context) -> Result<String> {
msg.force_plaintext();
msg.param.set_int(Param::SkipAutocrypt, 1);
chat::send_msg(context, chat_id, &mut msg).await?;
// Enable BCC-self, because transferring a key
// means we have a multi-device setup.
context.set_config_bool(Config::BccSelf, true).await?;
chat::send_msg(context, chat_id, &mut msg).await?;
Ok(setup_code)
}