mirror of
https://github.com/chatmail/core.git
synced 2026-10-01 18:50:39 +03:00
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user