refactor: send Secure-Join-Fingerprint only in *-request-with-auth

This commit is contained in:
link2xt
2023-12-18 21:28:25 +00:00
parent a144d7e4f3
commit 1e52502ab3
4 changed files with 8 additions and 29 deletions

View File

@@ -1003,17 +1003,6 @@ impl<'a> MimeFactory<'a> {
"Secure-Join".to_string(),
"vg-member-added".to_string(),
));
// FIXME: Old clients require Secure-Join-Fingerprint header. Remove this
// eventually.
let fingerprint = Peerstate::from_addr(context, email_to_add)
.await?
.context("No peerstate found in db")?
.public_key_fingerprint
.context("No public key fingerprint in db for the member to add")?;
headers.protected.push(Header::new(
"Secure-Join-Fingerprint".into(),
fingerprint.hex(),
));
}
}
SystemMessage::GroupNameChanged => {