Fix state for empty key route

Replace None with Some("") for state_key
merge-requests/22/head
Devin Ragotzy 4 years ago
parent 27ffe77823
commit d9a29e3e5c

@ -195,7 +195,7 @@ pub fn create_room_route(
content: match preset { content: match preset {
create_room::RoomPreset::PublicChat => { create_room::RoomPreset::PublicChat => {
serde_json::to_value(guest_access::GuestAccessEventContent::new( serde_json::to_value(guest_access::GuestAccessEventContent::new(
// In a public room a joining is the only way to access // In a public room, joining is the only way to access
guest_access::GuestAccess::Forbidden, guest_access::GuestAccess::Forbidden,
)) ))
.expect("event is valid, we just created it") .expect("event is valid, we just created it")

@ -76,7 +76,7 @@ pub fn send_state_event_for_empty_key_route(
&body.content, &body.content,
json, json,
&body.room_id, &body.room_id,
None, Some("".into()),
)? )?
.0 .0
.event_id, .event_id,

Loading…
Cancel
Save