fix: Don't show wrong system message on Bob's second device

Before this, Bob's second device showed a system message
"⚠️ It seems you are using Delta Chat on multiple devices that cannot
decrypt each other's outgoing messages..."
This commit is contained in:
Hocuri
2025-08-16 19:46:42 +02:00
parent a3d1e3bc89
commit f7844e97c2
4 changed files with 20 additions and 12 deletions

View File

@@ -2948,7 +2948,7 @@ async fn prepare_send_msg(
.get_bool(Param::ForcePlaintext)
.unwrap_or_default()
// V2 securejoin messages are symmetrically encrypted, no need for the public key:
|| msg.securejoin_step() == Some("vb-request-with-auth")
|| msg.is_vb_request_with_auth()
}
_ => false,
};
@@ -3052,6 +3052,9 @@ pub(crate) async fn create_send_msg_jobs(context: &Context, msg: &mut Message) -
if (context.get_config_bool(Config::BccSelf).await?
|| msg.param.get_cmd() == SystemMessage::AutocryptSetupMessage)
&& (context.get_config_delete_server_after().await? != Some(0) || !recipients.is_empty())
// `vb-request-with-auth` messages are symmetrically encrypted
// with a secret which the other device doesn't have:
&& !msg.is_vb_request_with_auth()
{
recipients.push(from);
}