1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-09-05 18:41:00 +00:00

chore: bump ruma

This commit is contained in:
Matthias Ahouansou 2025-06-28 19:40:10 +01:00
parent 5c8b030c1e
commit 1a4a348ccf
No known key found for this signature in database
8 changed files with 164 additions and 208 deletions

View file

@ -463,17 +463,15 @@ pub async fn create_room_route(
.await?;
}
if let Some(topic) = &body.topic {
if let Some(topic) = body.topic.clone() {
services()
.rooms
.timeline
.build_and_append_pdu(
PduBuilder {
event_type: TimelineEventType::RoomTopic,
content: to_raw_value(&RoomTopicEventContent {
topic: topic.clone(),
})
.expect("event is valid, we just created it"),
content: to_raw_value(&RoomTopicEventContent::new(topic))
.expect("event is valid, we just created it"),
unsigned: None,
state_key: Some("".to_owned()),
redacts: None,