fix MSC4133 fields not being returned as original types

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2025-01-01 23:19:51 -05:00
parent b4ef646485
commit 72797532b6
2 changed files with 16 additions and 5 deletions

View file

@ -506,6 +506,10 @@ pub(crate) async fn get_profile_key_route(
return Err!(Request(NotFound("The requested profile key does not exist.")));
}
if profile_key_value.is_empty() {
return Err!(Request(NotFound("The requested profile key does not exist.")));
}
return Ok(get_profile_key::unstable::Response { value: profile_key_value });
}
}
@ -522,5 +526,9 @@ pub(crate) async fn get_profile_key_route(
return Err!(Request(NotFound("The requested profile key does not exist.")));
}
if profile_key_value.is_empty() {
return Err!(Request(NotFound("The requested profile key does not exist.")));
}
Ok(get_profile_key::unstable::Response { value: profile_key_value })
}