fix: set GuaranteeE2ee even if encryption is forced

Otherwise padlock will not appear.
This commit is contained in:
link2xt
2025-03-11 15:45:35 +00:00
parent e5a3eae531
commit ea27a43bde

View File

@@ -3110,7 +3110,7 @@ pub(crate) async fn create_send_msg_jobs(context: &Context, msg: &mut Message) -
}
}
if rendered_msg.is_encrypted && !needs_encryption {
if rendered_msg.is_encrypted {
msg.param.set_int(Param::GuaranteeE2ee, 1);
msg.update_param(context).await?;
}