mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-15 17:26:58 +00:00
Revert "fix: Properly deserialize changes to legacy fields made with MSC4133 endpoints"
This reverts commit af45c348a4
.
temporary revert until fixup is completed by author
This commit is contained in:
parent
651fdecf19
commit
9e3065b827
1 changed files with 2 additions and 8 deletions
|
@ -163,9 +163,6 @@ pub(crate) async fn set_profile_key_route(
|
|||
}
|
||||
|
||||
if body.key_name == "displayname" {
|
||||
let Some(display_name) = profile_key_value.as_str() else {
|
||||
return Err!(Request(BadJson("displayname must be a string")));
|
||||
};
|
||||
let all_joined_rooms: Vec<OwnedRoomId> = services
|
||||
.rooms
|
||||
.state_cache
|
||||
|
@ -177,15 +174,12 @@ pub(crate) async fn set_profile_key_route(
|
|||
update_displayname(
|
||||
&services,
|
||||
&body.user_id,
|
||||
Some(display_name.to_owned()),
|
||||
Some(profile_key_value.to_string()),
|
||||
&all_joined_rooms,
|
||||
)
|
||||
.await;
|
||||
} else if body.key_name == "avatar_url" {
|
||||
let Some(avatar_url) = profile_key_value.as_str() else {
|
||||
return Err!(Request(BadJson("avatar_url must be a string")));
|
||||
};
|
||||
let mxc = ruma::OwnedMxcUri::from(avatar_url);
|
||||
let mxc = ruma::OwnedMxcUri::from(profile_key_value.to_string());
|
||||
|
||||
let all_joined_rooms: Vec<OwnedRoomId> = services
|
||||
.rooms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue