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:
parent
5c8b030c1e
commit
1a4a348ccf
8 changed files with 164 additions and 208 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue