diff options
author | Kévin Commaille <zecakeh@tedomum.fr> | 2023-02-26 16:29:06 +0100 |
---|---|---|
committer | Kévin Commaille <zecakeh@tedomum.fr> | 2023-03-18 15:03:56 +0100 |
commit | f53ecaa97db45e8ab749bd65195a3eaf85a28a7f (patch) | |
tree | 49a6f86cd40f3555d276fd3b5cb5e9cfe41aee5f /src/api/client_server/profile.rs | |
parent | f704169aebd38f04ea32b6dd08e0c677104159d0 (diff) | |
download | conduit-f53ecaa97db45e8ab749bd65195a3eaf85a28a7f.zip |
Bump Ruma
Diffstat (limited to 'src/api/client_server/profile.rs')
-rw-r--r-- | src/api/client_server/profile.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/client_server/profile.rs b/src/api/client_server/profile.rs index 6400e89..8fb38b5 100644 --- a/src/api/client_server/profile.rs +++ b/src/api/client_server/profile.rs @@ -9,7 +9,7 @@ use ruma::{ }, federation::{self, query::get_profile_information::v1::ProfileField}, }, - events::{room::member::RoomMemberEventContent, RoomEventType, StateEventType}, + events::{room::member::RoomMemberEventContent, StateEventType, TimelineEventType}, }; use serde_json::value::to_raw_value; use std::sync::Arc; @@ -37,7 +37,7 @@ pub async fn set_displayname_route( .map(|room_id| { Ok::<_, Error>(( PduBuilder { - event_type: RoomEventType::RoomMember, + event_type: TimelineEventType::RoomMember, content: to_raw_value(&RoomMemberEventContent { displayname: body.displayname.clone(), ..serde_json::from_str( @@ -172,7 +172,7 @@ pub async fn set_avatar_url_route( .map(|room_id| { Ok::<_, Error>(( PduBuilder { - event_type: RoomEventType::RoomMember, + event_type: TimelineEventType::RoomMember, content: to_raw_value(&RoomMemberEventContent { avatar_url: body.avatar_url.clone(), ..serde_json::from_str( |