fix duplicate timezone keys being sent on profile lookup requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-12-07 00:44:51 -05:00
parent a752fb9943
commit 35e9d9b02e
2 changed files with 15 additions and 5 deletions

View file

@ -117,6 +117,10 @@ pub(crate) async fn get_profile_information_route(
},
}
// services.users.timezone will collect the MSC4175 timezone key if it exists
custom_profile_fields.remove("us.cloke.msc4175.tz");
custom_profile_fields.remove("m.tz");
Ok(get_profile_information::v1::Response {
displayname,
avatar_url,