fix: Properly show email in account page when OIDC email_claim is set

This commit is contained in:
Ginger
2026-07-02 16:57:21 -04:00
parent da7d8c9821
commit 514c3bbcbf
4 changed files with 19 additions and 4 deletions
+4
View File
@@ -25,6 +25,10 @@ pub(crate) async fn third_party_route(
let sender_user = body.identity.expect_sender_user()?;
let mut threepids = vec![];
if !services.threepid.email_requirement().may_view() {
return Ok(get_3pids::v3::Response::new(vec![]));
}
if let Some(email) = services
.threepid
.get_email_for_localpart(sender_user.localpart())