fix: send legacy securejoin key requests as multipart/mixed

chatmail relays (filtermail) expect {vc,vg}-request
messages to be multipart/mixed with a single part.
Messages had this structure
before commit e0494b0b37
so we need to keep it for compatibility.
This commit is contained in:
link2xt
2026-08-20 20:31:27 +00:00
committed by l
parent f09f8fd8a4
commit 3df1e3712a
2 changed files with 22 additions and 0 deletions
+5
View File
@@ -494,6 +494,11 @@ async fn test_secure_join_group_ext(v3: bool, remove_invite: bool) -> Result<()>
"vg-request"
}
);
if !v3 {
// Legacy {vc,vg}-request should be sent as multipart/mixed
// to pass chatmail relay filters.
assert!(sent.payload.contains("Content-Type: multipart/mixed"));
}
assert_eq!(msg.get_header(HeaderDef::SecureJoinAuth).is_some(), v3);
assert_eq!(
msg.get_header(HeaderDef::SecureJoinInvitenumber).is_some(),