fix duplicate timezone keys being sent on profile lookup requests
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
a752fb9943
commit
35e9d9b02e
2 changed files with 15 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue