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" {
|
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
|
let all_joined_rooms: Vec<OwnedRoomId> = services
|
||||||
.rooms
|
.rooms
|
||||||
.state_cache
|
.state_cache
|
||||||
|
@ -177,15 +174,12 @@ pub(crate) async fn set_profile_key_route(
|
||||||
update_displayname(
|
update_displayname(
|
||||||
&services,
|
&services,
|
||||||
&body.user_id,
|
&body.user_id,
|
||||||
Some(display_name.to_owned()),
|
Some(profile_key_value.to_string()),
|
||||||
&all_joined_rooms,
|
&all_joined_rooms,
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
} else if body.key_name == "avatar_url" {
|
} else if body.key_name == "avatar_url" {
|
||||||
let Some(avatar_url) = profile_key_value.as_str() else {
|
let mxc = ruma::OwnedMxcUri::from(profile_key_value.to_string());
|
||||||
return Err!(Request(BadJson("avatar_url must be a string")));
|
|
||||||
};
|
|
||||||
let mxc = ruma::OwnedMxcUri::from(avatar_url);
|
|
||||||
|
|
||||||
let all_joined_rooms: Vec<OwnedRoomId> = services
|
let all_joined_rooms: Vec<OwnedRoomId> = services
|
||||||
.rooms
|
.rooms
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue